1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Mitigate inconsistent notifications

This commit is contained in:
Eugen 2017-01-22 21:50:17 +01:00 committed by GitHub
parent 61aee0006e
commit cea9fb31fe

View file

@ -39,9 +39,9 @@ class Notification < ApplicationRecord
def target_status
case type
when :reblog
activity.reblog
activity&.reblog
when :favourite, :mention
activity.status
activity&.status
end
end