projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cc7df5
)
Fix undefined variables on Favorite plugin by XRevan86
author
Diogo Cordeiro
<diogo@fc.up.pt>
Thu, 25 Apr 2019 21:31:03 +0000
(22:31 +0100)
committer
Diogo Cordeiro
<diogo@fc.up.pt>
Thu, 25 Apr 2019 22:12:58 +0000
(23:12 +0100)
plugins/Favorite/lib/favenoticestream.php
patch
|
blob
|
history
diff --git
a/plugins/Favorite/lib/favenoticestream.php
b/plugins/Favorite/lib/favenoticestream.php
index 10a3ec83bd82796de59174eedba4d75de755518e..814ce92500a5baec9fffea98df0e4c93332dffd5 100644
(file)
--- 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);
}