Add status references support
This commit is contained in:
parent
af161fa66b
commit
22ad776635
24 changed files with 321 additions and 7 deletions
|
@ -15,6 +15,7 @@
|
|||
# emoji_reactions_count :integer default(0), not null
|
||||
# test :integer default(0), not null
|
||||
# emoji_reaction_accounts_count :integer default(0), not null
|
||||
# status_referred_by_count :integer default(0), not null
|
||||
#
|
||||
|
||||
class StatusStat < ApplicationRecord
|
||||
|
@ -46,6 +47,10 @@ class StatusStat < ApplicationRecord
|
|||
[attributes['emoji_reaction_accounts_count'], 0].max
|
||||
end
|
||||
|
||||
def status_referred_by_count
|
||||
[attributes['status_referred_by_count'], 0].max
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def reset_parent_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue