Add emoji_reactions property to status api object
This commit is contained in:
parent
0ebf8b302d
commit
092f9916b0
7 changed files with 73 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
# replies_count :bigint(8) default(0), not null
|
||||
# reblogs_count :bigint(8) default(0), not null
|
||||
# favourites_count :bigint(8) default(0), not null
|
||||
# emoji_reactions :string
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
@ -30,6 +31,10 @@ class StatusStat < ApplicationRecord
|
|||
[attributes['favourites_count'], 0].max
|
||||
end
|
||||
|
||||
def emoji_reactions
|
||||
attributes['emoji_reactions'] || ''
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def reset_parent_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue