}
}
- create_tags_from_item($current_post, $dontcache);
+ create_tags_from_item($current_post);
create_files_from_item($current_post);
// Only check for notifications on start posts
dbesc($item['parent-uri']),
intval($item['uid'])
);
- create_tags_from_item($item['parent-uri'], $item['uid']);
- create_files_from_item($item['parent-uri'], $item['uid']);
+ create_tags_from_itemuri($item['parent-uri'], $item['uid']);
+ create_files_from_itemuri($item['parent-uri'], $item['uid']);
delete_thread_uri($item['parent-uri'], $item['uid']);
// ignore the result
}
<?php
-function create_tags_from_item($itemid, $dontcache = false) {
+function create_tags_from_item($itemid) {
global $a;
$profile_base = $a->get_baseurl();
if ($message["deleted"])
return;
- if (!$dontcache) {
- $cachefile = get_cachefile(urlencode($message["guid"])."-".hash("md5", $message['body']));
-
- if (($cachefile != '') AND !file_exists($cachefile)) {
- $s = prepare_text($message['body']);
- $stamp1 = microtime(true);
- file_put_contents($cachefile, $s);
- $a->save_timestamp($stamp1, "file");
- logger('create_tags_from_item: put item '.$message["id"].' into cachefile '.$cachefile);
- }
- }
-
$taglist = explode(",", $message["tag"]);
$tags = "";