]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
enclosures in Atom were not included
[quix0rs-gnu-social.git] / classes / Notice.php
index 541a72fb09ddecbaab1d1f66dfa1f184e1e52798..38e31cb2745189ff0a3b41ee1711f48803318e0e 100644 (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();
                 }
             }