From 8b94d283fb45f054ee5193b0cec8586461d636b1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 28 Dec 2016 13:21:12 +0100 Subject: Fix wrong person being notified after nested reblog call, fix favourites leaking private toots in Atom feeds --- app/models/favourite.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models') diff --git a/app/models/favourite.rb b/app/models/favourite.rb index 2fc3d18cd..147105e48 100644 --- a/app/models/favourite.rb +++ b/app/models/favourite.rb @@ -29,6 +29,10 @@ class Favourite < ApplicationRecord thread end + def hidden? + status.private_visibility? + end + before_validation do self.status = status.reblog if status.reblog? end -- cgit