commit: cea9fb31fefbe3723669082650f32956fabd5123
parent: 61aee0006eec95f47ca0a0c75f3ccf4151516b4a
Author: Eugen <eugen@zeonfederated.com>
Date: Sun, 22 Jan 2017 21:50:17 +0100
Mitigate inconsistent notifications
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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