- foreach ($result as $tag) {
- self::storeByHash($uriid, $tag[1], $tag[3], $tag[2], $probing);
+ foreach (self::getFromBody($body, $tags) as $tag) {
+ self::storeByHash($uriId, $tag[1], $tag[3], $tag[2], $probing);
+ }
+
+ // Search for hashtags in the shared body (but only if hashtags are wanted)
+ if (!empty($share_body) && (strpos($tags, self::TAG_CHARACTER[self::HASHTAG]) !== false)) {
+ foreach (self::getFromBody($share_body, self::TAG_CHARACTER[self::HASHTAG]) as $tag) {
+ self::storeByHash($uriId, $tag[1], $tag[3], $tag[2], $probing);
+ }