Skip to content

Commit

Permalink
Fix group_key on streaming notifications when they are ungrouped
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap authored and ClearlyClaire committed Jun 20, 2024
1 parent 8a8bf38 commit 47537fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/serializers/rest/notification_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def id
object.id.to_s
end

def group_key
object.group_key || "ungrouped-#{object.id}"
end

def status_type?
[:favourite, :reblog, :status, :mention, :poll, :update].include?(object.type)
end
Expand Down

0 comments on commit 47537fc

Please sign in to comment.