enclosures in Atom were not included

This commit is contained in:
Mikael Nordfeldth 2015-04-05 20:24:17 +02:00
parent f094918cf6
commit 5081477e95
1 changed files with 2 additions and 2 deletions

View File

@ -1841,9 +1841,9 @@ class Notice extends Managed_DataObject
$attachments = $this->attachments();
foreach ($attachments as $attachment) {
// Save local attachments
// Include local attachments in Activity
if (!empty($attachment->filename)) {
$act->attachments[] = ActivityObject::fromFile($attachment);
$act->enclosures[] = $attachment->getEnclosure();
}
}