]> git.mxchange.org Git - friendica.git/commitdiff
Now changing categories also changes them in the term table.
authorMichael Vogel <icarus@dabo.de>
Thu, 20 Mar 2014 17:48:08 +0000 (18:48 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 20 Mar 2014 17:48:08 +0000 (18:48 +0100)
mod/item.php

index 7d8492bb21e48c68784147eb5ceef1281c5d5fd6..346f1a0564a6db344f3d60c1fcb698e2892967dd 100644 (file)
@@ -143,7 +143,7 @@ function item_post(&$a) {
 
        if((x($_REQUEST,'commenter')) && ((! $parent) || (! $parent_item['wall']))) {
                notice( t('Permission denied.') . EOL) ;
-               if(x($_REQUEST,'return')) 
+               if(x($_REQUEST,'return'))
                        goaway($a->get_baseurl() . "/" . $return_path );
                killme();
        }
@@ -708,6 +708,10 @@ function item_post(&$a) {
                        intval($profile_uid)
                );
 
+               create_tags_from_item($post_id);
+               create_files_from_item($post_id);
+               update_thread($post_id);
+
                // update filetags in pconfig
                 file_tag_update_pconfig($uid,$categories_old,$categories_new,'category');