Fix trends error
This commit is contained in:
parent
e6fcf1543b
commit
d4e0ef254d
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,10 @@ class Status < ApplicationRecord
|
|||
status_stat&.favourites_count || 0
|
||||
end
|
||||
|
||||
def emoji_reactions_count
|
||||
status_stat&.emoji_reactions_count || 0
|
||||
end
|
||||
|
||||
def increment_count!(key)
|
||||
update_status_stat!(key => public_send(key) + 1)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue