* Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション * Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
parent
ba776d3677
commit
f2fb829e63
15 changed files with 118 additions and 5 deletions
|
@ -22,6 +22,8 @@ class EmojiReaction < ApplicationRecord
|
|||
|
||||
update_index('statuses', :status)
|
||||
|
||||
scope :local, -> { where(uri: nil) }
|
||||
|
||||
belongs_to :account, inverse_of: :emoji_reactions
|
||||
belongs_to :status, inverse_of: :emoji_reactions
|
||||
belongs_to :custom_emoji, optional: true
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
# updated_at :datetime not null
|
||||
# account_id :bigint(8) not null
|
||||
# status_id :bigint(8) not null
|
||||
# uri :string
|
||||
#
|
||||
|
||||
class Favourite < ApplicationRecord
|
||||
|
@ -16,6 +17,8 @@ class Favourite < ApplicationRecord
|
|||
|
||||
update_index('statuses', :status)
|
||||
|
||||
scope :local, -> { where(uri: nil) }
|
||||
|
||||
belongs_to :account, inverse_of: :favourites
|
||||
belongs_to :status, inverse_of: :favourites
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ class Form::AdminSettings
|
|||
media_cache_retention_period
|
||||
content_cache_retention_period
|
||||
backups_retention_period
|
||||
delete_content_cache_without_reaction
|
||||
status_page_url
|
||||
captcha_enabled
|
||||
ng_words
|
||||
|
@ -98,6 +99,7 @@ class Form::AdminSettings
|
|||
unlocked_friend
|
||||
stranger_mention_from_local_ng
|
||||
enable_local_timeline
|
||||
delete_content_cache_without_reaction
|
||||
).freeze
|
||||
|
||||
UPLOAD_KEYS = %i(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue