]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix undefined variables on Favorite plugin by XRevan86
authorDiogo Cordeiro <diogo@fc.up.pt>
Thu, 25 Apr 2019 21:31:03 +0000 (22:31 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Thu, 25 Apr 2019 22:12:58 +0000 (23:12 +0100)
plugins/Favorite/lib/favenoticestream.php

index 10a3ec83bd82796de59174eedba4d75de755518e..814ce92500a5baec9fffea98df0e4c93332dffd5 100644 (file)
@@ -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);
     }