Update function for creating the shadow entries.

This commit is contained in:
Michael Vogel 2014-12-21 21:19:37 +01:00
parent d054ac8d9c
commit 043c406091
5 changed files with 80 additions and 31 deletions

View file

@ -1044,7 +1044,7 @@ function encode_rel_links($links) {
function item_store($arr,$force_parent = false, $notify = false) {
function item_store($arr,$force_parent = false, $notify = false, $dontcache = false) {
// If it is a posting where users should get notifications, then define it as wall posting
if ($notify) {
@ -1469,7 +1469,7 @@ function item_store($arr,$force_parent = false, $notify = false) {
// current post can be deleted if is for a communuty page and no mention are
// in it.
if (!$deleted) {
if (!$deleted AND !$dontcache) {
// Store the fresh generated item into the cache
$cachefile = get_cachefile(urlencode($arr["guid"])."-".hash("md5", $arr['body']));
@ -1491,7 +1491,7 @@ function item_store($arr,$force_parent = false, $notify = false) {
}
}
create_tags_from_item($current_post);
create_tags_from_item($current_post, $dontcache);
create_files_from_item($current_post);
if ($notify)