]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
enclosures in Atom were not included
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 5 Apr 2015 18:24:17 +0000 (20:24 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 5 Apr 2015 18:24:17 +0000 (20:24 +0200)
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();
                 }
             }