From: Eugen Date: Sun, 22 Jan 2017 20:50:17 +0000 (+0100) Subject: Mitigate inconsistent notifications X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=cea9fb31fefbe3723669082650f32956fabd5123;p=mastodon.git Mitigate inconsistent notifications --- 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