From: Mikael Nordfeldth Date: Sun, 5 Apr 2015 18:24:17 +0000 (+0200) Subject: enclosures in Atom were not included X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5081477e9587db5758f33358f1f36292bc1a00c5;p=quix0rs-gnu-social.git enclosures in Atom were not included --- diff --git a/classes/Notice.php b/classes/Notice.php index 541a72fb09..38e31cb274 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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(); } }