X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FTag.php;h=368be55ddd28f3a4f100c6b63d21b972fce7f742;hb=6aa1dcfad371f34fea1f8e39b73de2cc3dd05784;hp=2f034e92b7767846b005a0fea7697d38f7a8b8e5;hpb=f418687a7166f0bd2fc8fc871ea8609ab1822208;p=friendica.git diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 2f034e92b7..368be55ddd 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -1,6 +1,6 @@ getSharedPost($item, ['uri-id']); - if (!empty($shared)) { - $item['body'] = BBCode::removeSharedData($item['body']); - } - foreach (self::getFromBody($item['body'], $tags) as $tag) { self::storeByHash($item['uri-id'], $tag[1], $tag[3], $tag[2]); } + $shared = DI::contentItem()->getSharedPost($item, ['uri-id']); + // Search for hashtags in the shared body (but only if hashtags are wanted) if (!empty($shared) && (strpos($tags, self::TAG_CHARACTER[self::HASHTAG]) !== false)) { foreach (self::getByURIId($shared['post']['uri-id'], [self::HASHTAG]) as $tag) {