1
0
Fork 0
forked from gitea/nas

Add status references support

This commit is contained in:
KMY 2023-07-06 12:55:11 +09:00
parent af161fa66b
commit 22ad776635
24 changed files with 321 additions and 7 deletions

View file

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