Merge commit 'e3f0b955b8
' into kbtopic-remove-quoteMerge
This commit is contained in:
commit
29b904483e
357 changed files with 1914 additions and 1355 deletions
|
@ -32,6 +32,7 @@
|
|||
# limited_scope :integer
|
||||
# quote_of_id :bigint(8)
|
||||
# fetched_replies_at :datetime
|
||||
# quote_approval_policy :integer default(0), not null
|
||||
#
|
||||
|
||||
require 'ostruct'
|
||||
|
@ -54,6 +55,13 @@ class Status < ApplicationRecord
|
|||
MEDIA_ATTACHMENTS_LIMIT_WITH_POLL = 4
|
||||
MEDIA_ATTACHMENTS_LIMIT_FROM_REMOTE = 16
|
||||
|
||||
QUOTE_APPROVAL_POLICY_FLAGS = {
|
||||
unknown: (1 << 0),
|
||||
public: (1 << 1),
|
||||
followers: (1 << 2),
|
||||
followed: (1 << 3),
|
||||
}.freeze
|
||||
|
||||
rate_limit by: :account, family: :statuses
|
||||
|
||||
self.discard_column = :deleted_at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue