Mitigate inconsistent notifications
This commit is contained in:
parent
e161d2acdc
commit
9a2a6b476b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue