Mitigate inconsistent notifications
parent
e161d2acdc
commit
9a2a6b476b
|
@ -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…
Reference in New Issue