Browse Source

Mitigate inconsistent notifications

master
Eugen 7 years ago
committed by GitHub
parent
commit
cea9fb31fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/notification.rb

+ 2
- 2
app/models/notification.rb View File

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