Mitigate inconsistent notifications

master
Eugen 7 years ago committed by GitHub
parent 61aee0006e
commit cea9fb31fe
  1. 4
      app/models/notification.rb

@ -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…
Cancel
Save