From 041243a3c94c0bb72e3dfccd98e16ab5de9ec2f1 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 1 Aug 2020 21:28:23 -0500 Subject: [Feature, Partial] Add backend support for additional publishing and customization options --- app/models/status.rb | 1 + app/models/user.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit