We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0f08d commit 0044a5bCopy full SHA for 0044a5b
1 file changed
app/models/status.rb
@@ -410,7 +410,7 @@ def emoji_reactions_grouped_by_name(account = nil, **options)
410
411
permitted_account_ids = options[:permitted_account_ids]
412
413
- (JSON.parse(status_stat&.emoji_reactions || '[]') || []).tap do |emoji_reactions|
+ JSON.parse(status_stat&.emoji_reactions.presence || '[]').tap do |emoji_reactions|
414
if account.present?
415
public_emoji_reactions = []
416
0 commit comments