From bc030da3208143afcb869ce4611cb39d8d465fa6 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Thu, 25 Apr 2019 22:31:03 +0100 Subject: [PATCH] Fix undefined variables on Favorite plugin by XRevan86 --- plugins/Favorite/lib/favenoticestream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Favorite/lib/favenoticestream.php b/plugins/Favorite/lib/favenoticestream.php index 10a3ec83bd..814ce92500 100644 --- a/plugins/Favorite/lib/favenoticestream.php +++ b/plugins/Favorite/lib/favenoticestream.php @@ -46,9 +46,9 @@ class FaveNoticeStream extends ScopingNoticeStream { $stream = new RawFaveNoticeStream($target, $scoped); if ($target->sameAs($scoped)) { - $key = 'fave:ids_by_user_own:'.$user_id; + $key = 'fave:ids_by_user_own:'.$target->getID(); } else { - $key = 'fave:ids_by_user:'.$user_id; + $key = 'fave:ids_by_user:'.$target->getID(); } parent::__construct(new CachingNoticeStream($stream, $key), $scoped); }