mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-18 08:01:57 +01:00
Mitigate inconsistent notifications
This commit is contained in:
parent
61aee0006e
commit
cea9fb31fe
@ -39,9 +39,9 @@ class Notification < ApplicationRecord
|
|||||||
def target_status
|
def target_status
|
||||||
case type
|
case type
|
||||||
when :reblog
|
when :reblog
|
||||||
activity.reblog
|
activity&.reblog
|
||||||
when :favourite, :mention
|
when :favourite, :mention
|
||||||
activity.status
|
activity&.status
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user