diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-01 21:28:23 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:17 -0500 |
commit | 041243a3c94c0bb72e3dfccd98e16ab5de9ec2f1 (patch) | |
tree | 1bc00183df2347f24e81e83edb494680fc0955e2 /app/models | |
parent | 3e57d03573d267e54da66effdd502b3372f4bbd9 (diff) |
[Feature, Partial] Add backend support for additional publishing and customization options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 1 | ||||
-rw-r--r-- | app/models/user.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 82be3ec85..fab3644a4 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -171,6 +171,7 @@ class Status < ApplicationRecord unlisted: 3, public: 4, }.with_indifferent_access.freeze + TIMER_VALUES = [0, 5, 10, 15, 30, 60, 120, 180, 360, 720, 1440].freeze def searchable_by(preloaded = nil) ids = [] diff --git a/app/models/user.rb b/app/models/user.rb index 0ed133079..cdb32f214 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -116,7 +116,8 @@ class User < ApplicationRecord :default_content_type, :system_emoji_font, :manual_publish, :style_dashed_nest, :style_underline_a, :style_css_profile, :style_css_profile_errors, :style_css_webapp, :style_css_webapp_errors, - :publish_in, + :publish_in, :unpublish_in, :unpublish_delete, :boost_every, :boost_jitter, + :boost_random, to: :settings, prefix: :setting, allow_nil: false attr_reader :invite_code, :sign_in_token_attempt |