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 8b30418..1fe6fa1 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 a8e8285..5a7e6ba 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 999c497..c4d8ce4 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 42b0c02..9f5cd65 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 cb89027..4a7d96d 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 7ed90f9..97281a3 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 261f037..281c58a 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 1c71a07..6a3d0eb 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 9c12bb6..aa7adf5 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'));