From 5081477e9587db5758f33358f1f36292bc1a00c5 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 5 Apr 2015 20:24:17 +0200 Subject: [PATCH] enclosures in Atom were not included --- classes/Notice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } } -- 2.39.2