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:
4f9b70d
)
Faves backed up properly to UAS
author
Mikael Nordfeldth
<mmn@hethane.se>
Fri, 13 Feb 2015 10:52:29 +0000
(11:52 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Fri, 13 Feb 2015 10:52:29 +0000
(11:52 +0100)
plugins/Favorite/FavoritePlugin.php
patch
|
blob
|
history
diff --git
a/plugins/Favorite/FavoritePlugin.php
b/plugins/Favorite/FavoritePlugin.php
index 42598489bbf6c5acffa13ef7c61f939d94e2a3bc..810957c322fbb499f30ce6a2a386f1ee6aa6b821 100644
(file)
--- a/
plugins/Favorite/FavoritePlugin.php
+++ b/
plugins/Favorite/FavoritePlugin.php
@@
-343,7
+343,6
@@
class FavoritePlugin extends ActivityHandlerPlugin
public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs)
{
- $faves = array();
$fave = new Fave();
$fave->user_id = $uas->getUser()->id;
@@
-353,11
+352,11
@@
class FavoritePlugin extends ActivityHandlerPlugin
if ($fave->find()) {
while ($fave->fetch()) {
- $
fave
s[] = clone($fave);
+ $
obj
s[] = clone($fave);
}
}
- return
$faves
;
+ return
true
;
}
public function onStartShowThreadedNoticeTailItems(NoticeListItem $nli, Notice $notice, &$threadActive)