Replace hard tabs with spaces in .rb files
This commit is contained in:
@@ -362,13 +362,13 @@ class Sandbox
|
|||||||
# https://github.com/torvalds/linux/blob/master/include/uapi/linux/sched.h
|
# https://github.com/torvalds/linux/blob/master/include/uapi/linux/sched.h
|
||||||
bitmask :unshare_flags, [
|
bitmask :unshare_flags, [
|
||||||
:clone_time, 7, # 0x00000080, New time namespace
|
:clone_time, 7, # 0x00000080, New time namespace
|
||||||
:clone_newns, 17, # 0x00020000, New mount (filesystem) namespace
|
:clone_newns, 17, # 0x00020000, New mount (filesystem) namespace
|
||||||
:clone_newcgroup, 25, # 0x02000000, New cgroup namespace
|
:clone_newcgroup, 25, # 0x02000000, New cgroup namespace
|
||||||
:clone_newuts, 26, # 0x04000000, New utsname (hostname) namespace
|
:clone_newuts, 26, # 0x04000000, New utsname (hostname) namespace
|
||||||
:clone_newipc, 27, # 0x08000000, New ipc namespace
|
:clone_newipc, 27, # 0x08000000, New ipc namespace
|
||||||
:clone_newuser, 28, # 0x10000000, New user namespace
|
:clone_newuser, 28, # 0x10000000, New user namespace
|
||||||
:clone_newpid, 29, # 0x20000000, New pid namespace
|
:clone_newpid, 29, # 0x20000000, New pid namespace
|
||||||
:clone_newnet, 30, # 0x40000000, New network namespace
|
:clone_newnet, 30, # 0x40000000, New network namespace
|
||||||
]
|
]
|
||||||
|
|
||||||
# https://github.com/torvalds/linux/blob/master/include/uapi/linux/mount.h
|
# https://github.com/torvalds/linux/blob/master/include/uapi/linux/mount.h
|
||||||
|
|||||||
@@ -174,23 +174,23 @@ module Danbooru
|
|||||||
# How long pending posts stay in the modqueue before being deleted.
|
# How long pending posts stay in the modqueue before being deleted.
|
||||||
def moderation_period
|
def moderation_period
|
||||||
3.days
|
3.days
|
||||||
end
|
end
|
||||||
|
|
||||||
# Upload points can be earned or lost by users. They punish and reward users by adding and removing upload slots.
|
# Upload points can be earned or lost by users. They punish and reward users by adding and removing upload slots.
|
||||||
# 1000 points is enough for 10 uploads. See app/logical/upload_limit.rb for details on the level system.
|
# 1000 points is enough for 10 uploads. See app/logical/upload_limit.rb for details on the level system.
|
||||||
def initial_upload_points
|
def initial_upload_points
|
||||||
1000
|
1000
|
||||||
end
|
end
|
||||||
|
|
||||||
# The cap on how many upload points a user can earn.
|
# The cap on how many upload points a user can earn.
|
||||||
def maximum_upload_points
|
def maximum_upload_points
|
||||||
10_000
|
10_000
|
||||||
end
|
end
|
||||||
|
|
||||||
# These slots are added to the ones earned by upload levels and guaranteed to all users, even those at level 0.
|
# These slots are added to the ones earned by upload levels and guaranteed to all users, even those at level 0.
|
||||||
def extra_upload_slots
|
def extra_upload_slots
|
||||||
5
|
5
|
||||||
end
|
end
|
||||||
|
|
||||||
# https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
|
# https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
|
||||||
# https://guides.rubyonrails.org/configuring.html#configuring-action-mailer
|
# https://guides.rubyonrails.org/configuring.html#configuring-action-mailer
|
||||||
|
|||||||
Reference in New Issue
Block a user