mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-14 11:34:34 +01:00
Mitigate inconsistent notifications
This commit is contained in:
parent
61aee0006e
commit
cea9fb31fe
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue