Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション (#535)

* Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション

* Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
KMY(雪あすか) 2024-02-13 08:56:55 +09:00 committed by GitHub
parent ba776d3677
commit f2fb829e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 118 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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(