if (empty($cid)) {
$fields = ['name' => substr($name, 0, 96), 'url' => ''];
- if (!empty($url) && ($url != $name)) {
+ if (($type != Tag::HASHTAG) && !empty($url) && ($url != $name)) {
$fields['url'] = strtolower($url);
}
$datarray["body"] = $prefix.$original_item["body"]."[/share]";
+ Tag::storeFromBody($datarray['uri-id'], $datarray["body"]);
+
$datarray["tag"] = $original_item["tag"];
$datarray["attach"] = $original_item["attach"];
$datarray["app"] = $original_item["app"];
$item["body"] = add_page_info_to_body($item["body"]);
}
+ Tag::storeFromBody($item['uri-id'], $item['body']);
+
// Mastodon Content Warning
if (($item["verb"] == Activity::POST) && $xpath->evaluate('boolean(atom:summary)', $entry)) {
$clear_text = XML::getFirstNodeValue($xpath, 'atom:summary/text()', $entry);