Commit e9457db8 authored by mmn's avatar mmn

DirectMessages backed up properly for UAS

parent 44191ac8
......@@ -63,7 +63,9 @@ class DirectMessagePlugin extends Plugin
if (!empty($uas->after)) {
$messages = array_filter($messages, array($uas, 'createdAfter'));
}
$objs[] = $messages;
foreach ($messages as $message) {
$objs[] = clone($message);
}
// Messages _to_ the user
$msgMap = Message::listGet('to_profile', array($uas->getUser()->id));
......@@ -71,7 +73,9 @@ class DirectMessagePlugin extends Plugin
if (!empty($uas->after)) {
$messages = array_filter($messages, array($uas, 'createdAfter'));
}
$objs[] = $messages;
foreach ($messages as $message) {
$objs[] = clone($message);
}
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment