Commit cea9fb31 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Mitigate inconsistent notifications

parent 61aee000
...@@ -39,9 +39,9 @@ class Notification < ApplicationRecord ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment