]> git.mxchange.org Git - friendica-addons.git/commitdiff
Add native quotes to the upon posting
authorMichael <heluecht@pirati.ca>
Sat, 29 Oct 2022 22:14:12 +0000 (22:14 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 29 Oct 2022 23:37:25 +0000 (19:37 -0400)
diaspora/diaspora.php
dwpost/dwpost.php
libertree/libertree.php
ljpost/ljpost.php
pumpio/pumpio.php
statusnet/statusnet.php
tumblr/tumblr.php
twitter/twitter.php
wppost/wppost.php

index 8b3041818b61ccd468a98245c8b60b17ae26c9c4..1fe6fa12af2412ca183d6956afa95267015001a0 100644 (file)
@@ -202,7 +202,7 @@ function diaspora_send(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
index a8e82854b339b965dc4adeb3d0fabe7c8762ce8e..5a7e6ba4cfac29765c93aab018f3ae00fc783567 100644 (file)
@@ -134,7 +134,7 @@ function dwpost_send(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        /*
         * dreamwidth post in the LJ user's timezone.
index 999c4972e65bea9829d121ee808ebfcdee8fe499..c4d8ce45fbf2bf29a267c7e29396785756f2dd53 100644 (file)
@@ -157,7 +157,7 @@ function libertree_send(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        $ltree_api_token = DI::pConfig()->get($b['uid'],'libertree','libertree_api_token');
        $ltree_url = DI::pConfig()->get($b['uid'],'libertree','libertree_url');
index 42b0c020600505211c6983f90da7336a1802ca57..9f5cd65c1e3686cb0e7c99b5d339f916f5e15fd2 100644 (file)
@@ -130,7 +130,7 @@ function ljpost_send(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        // LiveJournal post in the LJ user's timezone.
        // Hopefully the person's Friendica account
index cb89027762a17abe54306fb5eb3db8cf21579179..4a7d96d269631fc598eb37d473273743417c4354 100644 (file)
@@ -396,7 +396,7 @@ function pumpio_send(App $a, array &$b)
 
        Logger::debug('pumpio_send: parameter ', $b);
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        if ($b['parent'] != $b['id']) {
                // Looking if its a reply to a pumpio post
index 7ed90f9e050199315519c8138fcd5510ad8b6b3a..97281a3994191233de2b5b649dc43fcf4e241e34 100644 (file)
@@ -440,7 +440,7 @@ function statusnet_post_hook(App $a, array &$b)
                        return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        $api = DI::pConfig()->get($b['uid'], 'statusnet', 'baseapi');
        $hostname = preg_replace("=https?://([\w\.]*)/.*=ism", "$1", $api);
index 261f037e4ada66e030f78f370f461301a60dada6..281c58ac03c383caf6d17b2afd27e216cee26a1f 100644 (file)
@@ -331,7 +331,7 @@ function tumblr_send(App $a, array &$b) {
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        $oauth_token = DI::pConfig()->get($b['uid'], "tumblr", "oauth_token");
        $oauth_token_secret = DI::pConfig()->get($b['uid'], "tumblr", "oauth_token_secret");
index 1c71a076e46d56c1b85508861f01febdb903ff2c..6a3d0eb12e623fb0728278e0a5c8026d28df1358 100644 (file)
@@ -643,7 +643,7 @@ function twitter_post_hook(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        $thr_parent = null;
 
index 9c12bb6ee5e74db22d61d5b2df936cf8e24a4f0e..aa7adf5e9d7e1e18889bc80e2a946b6bbc1571c2 100644 (file)
@@ -172,7 +172,7 @@ function wppost_send(App $a, array &$b)
                return;
        }
 
-       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
 
        $wp_username = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_username'));
        $wp_password = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_password'));