]> git.mxchange.org Git - friendica.git/commitdiff
API: Media attachments are now supported
authorMichael <heluecht@pirati.ca>
Sat, 31 Oct 2020 16:09:27 +0000 (16:09 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 31 Oct 2020 16:09:27 +0000 (16:09 +0000)
src/DI.php

index e259c271a00ac4ef6dc82d13b4e21246b76d89eb..06397d0e235970bf97244633352b7b27d700106f 100644 (file)
@@ -239,6 +239,14 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Account::class);
        }
 
+       /**
+        * @return Factory\Api\Mastodon\Attachment
+        */
+       public static function mstdnAttachment()
+       {
+               return self::$dice->create(Factory\Api\Mastodon\Attachment::class);
+       }
+
        /**
         * @return Factory\Api\Mastodon\Emoji
         */