]> git.mxchange.org Git - friendica.git/commitdiff
Added comment for the deactivated part
authorMichael <heluecht@pirati.ca>
Fri, 30 Sep 2022 07:17:07 +0000 (07:17 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 30 Sep 2022 07:17:07 +0000 (07:17 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 82816e6685f778ed756bf835148849fe0268852d..fae9250aac73fc5b78ecb070228b330a144b23d2 100644 (file)
@@ -1392,12 +1392,13 @@ class Transmitter
 
                // @see https://codeberg.org/fediverse/fep/src/branch/main/feps/fep-e232.md
                if (!empty($quote_url)) {
-                       $tags[] = [
-                               '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)
-                       ];
+                       // Currently deactivated because of compatibility issues with Pleroma
+                       //$tags[] = [
+                       //      '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)
+                       //];
                }
 
                return $tags;
@@ -1694,7 +1695,7 @@ class Transmitter
                }
 
                $data['attachment'] = self::createAttachmentList($item);
-               $data['tag'] = self::createTagList($item, ''); // $data['quoteUrl'] ?? 
+               $data['tag'] = self::createTagList($item, $data['quoteUrl'] ?? '');  
 
                if (empty($data['location']) && (!empty($item['coord']) || !empty($item['location']))) {
                        $data['location'] = self::createLocation($item);