enclosures in Atom were not included
This commit is contained in:
parent
f094918cf6
commit
5081477e95
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user