]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/classes/Ostatus_profile.php
Send objects instead of integers to File_to_post::processNew
[quix0rs-gnu-social.git] / plugins / OStatus / classes / Ostatus_profile.php
index 07c9d1c182a59e38eec64f93c652838db3fa4497..4d1b95e2b76eeedd30c5d31847f73a4be2b19a23 100644 (file)
@@ -691,8 +691,8 @@ class Ostatus_profile extends Managed_DataObject
                                      $options);
             if ($saved instanceof Notice) {
                 Ostatus_source::saveNew($saved, $this, $method);
-                if (!empty($attachment)) {
-                    File_to_post::processNew($attachment->id, $saved->id);
+                if ($attachment instanceof File) {
+                    File_to_post::processNew($attachment, $saved);
                 }
             }
         } catch (Exception $e) {