X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDFRN.php;h=df974729bab07261d01cfe7b8645d167727391cc;hb=7c138dd15c0c28a480f06feaedfa09916ba8461f;hp=0c348610e24ed5115f16425a4677f9621962c5ba;hpb=639d5373e08d80387442f873e22960c8633d41c6;p=friendica.git diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 0c348610e2..df974729ba 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -899,7 +899,7 @@ class DFRN $entry->setAttribute("xmlns:statusnet", ActivityNamespace::STATUSNET); } - $body = Post\Media::addAttachmentsToBody($item['uri-id']); + $body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']); if ($item['private'] == Item::PRIVATE) { $body = Item::fixPrivatePhotos($body, $owner['uid'], $item, $cid); @@ -2245,6 +2245,8 @@ class DFRN $item['uri-id'] = ItemURI::insert(['uri' => $item['uri'], 'guid' => $item['guid']]); + $item["body"] = Item::improveSharedDataInBody($item); + Tag::storeFromBody($item['uri-id'], $item["body"]); // We store the data from "dfrn:diaspora_signature" in a different table, this is done in "Item::insert" @@ -2340,7 +2342,7 @@ class DFRN return 403; } } - + // Get the type of the item (Top level post, reply or remote reply) $entrytype = self::getEntryType($importer, $item);