]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Transmitter.php
The quote functionality is simplified
[friendica.git] / src / Protocol / ActivityPub / Transmitter.php
index fae9250aac73fc5b78ecb070228b330a144b23d2..38482d3ec95f83dab1191745305e794b49b824dc 100644 (file)
@@ -1397,7 +1397,7 @@ class Transmitter
                        //      'type'      => 'Link',
                        //      'mediaType' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
                        //      'href'      => $quote_url,
-                       //      'name'      => BBCode::convertForUriId($item['uri-id'], $quote_url, BBCode::ACTIVITYPUB)
+                       //      'name'      => '♲ ' . BBCode::convertForUriId($item['uri-id'], $quote_url, BBCode::ACTIVITYPUB)
                        //];
                }
 
@@ -1664,7 +1664,7 @@ class Transmitter
 
                        $shared = BBCode::fetchShareAttributes($body);
                        if (!empty($shared['link']) && !empty($shared['guid']) && !empty($shared['comment'])) {
-                               $body = self::ReplaceSharedData($body);
+                               $body = self::replaceSharedData($body);
                                $data['quoteUrl'] = $shared['link'];
                        }
 
@@ -1680,7 +1680,7 @@ class Transmitter
 
                        $shared = BBCode::fetchShareAttributes($richbody);
                        if (!empty($shared['link']) && !empty($shared['guid']) && !empty($shared['comment'])) {
-                               $richbody = self::ReplaceSharedData($richbody);
+                               $richbody = self::replaceSharedData($richbody);
                        }
 
                        $richbody = BBCode::removeAttachment($richbody);
@@ -1716,12 +1716,12 @@ class Transmitter
         * @param string $body
         * @return string
         */
-       private static function ReplaceSharedData(string $body): string
+       private static function replaceSharedData(string $body): string
        {
                return BBCode::convertShare(
                        $body,
                        function (array $attributes) {
-                               return $attributes['link'];
+                               return '♲ ' . $attributes['link'];
                        }
                );
        }