]> git.mxchange.org Git - friendica.git/commitdiff
Fill the cache fields as well
authorMichael <heluecht@pirati.ca>
Tue, 9 Jan 2018 22:35:50 +0000 (22:35 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Jan 2018 22:35:50 +0000 (22:35 +0000)
mod/item.php

index 5d9ca819962cb18b40f602c47555544e39e8b508..fd6af802b00209fa6024c5b4c5d1a6ac41f42786 100644 (file)
@@ -810,6 +810,11 @@ function item_post(App $a) {
        }
 
        if ($orig_post) {
+
+               // Fill the cache field
+               // This could be done in Item::update as well - but we hasd to check for the existance of some fields.
+               put_item_in_cache($datarray);
+
                $fields = array(
                        'title' => $datarray['title'],
                        'body' => $datarray['body'],