Add direct messages to backup
This commit is contained in:
parent
96d7b68c50
commit
0fb6819200
@ -72,8 +72,10 @@ class UserActivityStream extends AtomUserNoticeFeed
|
|||||||
$subscribers = $this->getSubscribers();
|
$subscribers = $this->getSubscribers();
|
||||||
$groups = $this->getGroups();
|
$groups = $this->getGroups();
|
||||||
$faves = $this->getFaves();
|
$faves = $this->getFaves();
|
||||||
|
$messagesFrom = $this->getMessagesFrom();
|
||||||
|
$messagesTo = $this->getMessagesTo();
|
||||||
|
|
||||||
$objs = array_merge($subscriptions, $subscribers, $groups, $faves, $notices);
|
$objs = array_merge($subscriptions, $subscribers, $groups, $faves, $notices, $messagesFrom, $messagesTo);
|
||||||
|
|
||||||
$subscriptions = null;
|
$subscriptions = null;
|
||||||
$subscribers = null;
|
$subscribers = null;
|
||||||
@ -332,6 +334,20 @@ class UserActivityStream extends AtomUserNoticeFeed
|
|||||||
return $groups;
|
return $groups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getMessagesTo()
|
||||||
|
{
|
||||||
|
$msgMap = Memcached_DataObject::listGet('Message', 'to_profile', array($this->user->id));
|
||||||
|
|
||||||
|
return $msgMap[$this->user->id];
|
||||||
|
}
|
||||||
|
|
||||||
|
function getMessagesFrom()
|
||||||
|
{
|
||||||
|
$msgMap = Memcached_DataObject::listGet('Message', 'from_profile', array($this->user->id));
|
||||||
|
|
||||||
|
return $msgMap[$this->user->id];
|
||||||
|
}
|
||||||
|
|
||||||
function writeJSON($handle)
|
function writeJSON($handle)
|
||||||
{
|
{
|
||||||
require_once INSTALLDIR.'/lib/activitystreamjsondocument.php';
|
require_once INSTALLDIR.'/lib/activitystreamjsondocument.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user