1
0
Fork 0
forked from gitea/nas

Add emoji_reactions property to status api object

This commit is contained in:
KMY 2023-02-23 20:32:27 +09:00
parent 0ebf8b302d
commit 092f9916b0
7 changed files with 73 additions and 2 deletions

View file

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