use Friendica\Model\Item;
use Friendica\Model\Photo;
use Friendica\Model\Profile;
+use Friendica\Model\Term;
use Friendica\Network\Probe;
use Friendica\Object\Image;
use Friendica\Protocol\DFRN;
dbesc($rr['parent-uri']),
intval($page_owner_uid)
);
- create_tags_from_itemuri($rr['parent-uri'], $page_owner_uid);
+ Term::insertFromItemUri($rr['parent-uri'], $page_owner_uid);
delete_thread_uri($rr['parent-uri'], $page_owner_uid);
$drop_id = intval($rr['id']);
dbesc($i[0]['uri']),
intval($page_owner_uid)
);
- create_tags_from_itemuri($i[0]['uri'], $page_owner_uid);
+ Term::insertFromItemUri($i[0]['uri'], $page_owner_uid);
delete_thread_uri($i[0]['uri'], $page_owner_uid);
$url = System::baseUrl();
intval($item_id),
intval($page_owner_uid)
);
- create_tags_from_item($item_id);
+ Term::insertFromItemId($item_id);
update_thread($item_id);
$best = 0;
$a->page['aside'] .= posted_date_widget(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], $a->profile['profile_uid'], true);
$a->page['aside'] .= Widget::categories(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], (x($category) ? xmlify($category) : ''));
- $a->page['aside'] .= tagcloud_wall_widget();
+ $a->page['aside'] .= Widget::tagCloud();
if (can_write_wall($a->profile['profile_uid'])) {
$x = [
use Friendica\Model\Contact;
use Friendica\Model\Group;
use Friendica\Model\Profile;
+use Friendica\Model\Term;
use Friendica\Protocol\DFRN;
use Friendica\Util\DateTimeFormat;
dbesc($i[0]['uri']),
intval(local_user())
);
- create_tags_from_itemuri($i[0]['uri'], local_user());
+ Term::insertFromItemUri($i[0]['uri'], local_user());
delete_thread_uri($i[0]['uri'], local_user());
$url = System::baseUrl();
continue;
}
- create_tags_from_item($item['id']);
+ Term::insertFromItemId($item['id']);
Term::insertFromItemFileById($item['id']);
update_thread($item['id']);
'edited' => DateTimeFormat::utcNow(), 'changed' => DateTimeFormat::utcNow()],
['id' => $item['id']]);
- create_tags_from_item($item['id']);
+ Term::insertFromItemId($item['id']);
Term::insertFromItemFileById($item['id']);
delete_thread($item['id'], $item['parent-uri']);
* Due to deadlock issues with the "term" table we are doing these steps after the commit.
* This is not perfect - but a workable solution until we found the reason for the problem.
*/
- create_tags_from_item($current_post);
+ Term::insertFromItemId($current_post);
Term::insertFromItemFileById($current_post);
if ($arr['parent-uri'] === $arr['uri']) {
$condition = ["`uri` = ? AND `uid` IN (0, ?)", $item["uri"], $importer["importer_uid"]];
dba::update('item', $fields, $condition);
- create_tags_from_itemuri($item["uri"], $importer["importer_uid"]);
+ Term::insertFromItemUri($item["uri"], $importer["importer_uid"]);
update_thread_uri($item["uri"], $importer["importer_uid"]);
$changed = true;
dbesc($r[0]["tag"] . (strlen($r[0]["tag"]) ? ',' : '') . '#[url=' . $xo->id . ']'. $xo->content . '[/url]'),
intval($r[0]["id"])
);
- create_tags_from_item($r[0]["id"]);
+ Term::insertFromItemId($r[0]["id"]);
}
}
}
dbesc(implode(',', $newtags)),
intval($i[0]["id"])
);
- create_tags_from_item($i[0]["id"]);
+ Term::insertFromItemId($i[0]["id"]);
}
}
}
dbesc($uri),
intval($importer["uid"])
);
- create_tags_from_itemuri($uri, $importer["uid"]);
+ Term::insertFromItemUri($uri, $importer["uid"]);
Term::insertFromItemFileByUri($uri, $importer["uid"]);
update_thread_uri($uri, $importer["uid"]);
} else {
dbesc($uri),
intval($importer["uid"])
);
- create_tags_from_itemuri($uri, $importer["uid"]);
+ Term::insertFromItemUri($uri, $importer["uid"]);
Term::insertFromItemFileByUri($uri, $importer["uid"]);
update_thread_uri($uri, $importer["importer_uid"]);