diff options
author | Eugen <eugen@zeonfederated.com> | 2017-01-22 21:50:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-22 21:50:17 +0100 |
commit | cea9fb31fefbe3723669082650f32956fabd5123 (patch) | |
tree | 2c2d0c3fe4eb2cfd45ff2cf900c1aaebfd73a8fc /app/models | |
parent | 61aee0006eec95f47ca0a0c75f3ccf4151516b4a (diff) |
Mitigate inconsistent notifications
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/notification.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/notification.rb b/app/models/notification.rb index c0b5c45a8..b7e8c9e71 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -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 |