Fix undefined variables on Favorite plugin by XRevan86

This commit is contained in:
Diogo Cordeiro 2019-04-25 22:31:03 +01:00
parent 9cc7df51d6
commit bc030da320

View File

@ -46,9 +46,9 @@ class FaveNoticeStream extends ScopingNoticeStream
{ {
$stream = new RawFaveNoticeStream($target, $scoped); $stream = new RawFaveNoticeStream($target, $scoped);
if ($target->sameAs($scoped)) { if ($target->sameAs($scoped)) {
$key = 'fave:ids_by_user_own:'.$user_id; $key = 'fave:ids_by_user_own:'.$target->getID();
} else { } else {
$key = 'fave:ids_by_user:'.$user_id; $key = 'fave:ids_by_user:'.$target->getID();
} }
parent::__construct(new CachingNoticeStream($stream, $key), $scoped); parent::__construct(new CachingNoticeStream($stream, $key), $scoped);
} }