From 7cd1bd59b2544aae52a399761849f46bd7b8a066 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 Oct 2013 20:44:13 -0700 Subject: bug 175 - categories not updated when editing --- mod/item.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 48a22bd3c..59c395b4d 100644 --- a/mod/item.php +++ b/mod/item.php @@ -605,6 +605,7 @@ function item_post(&$a) { $datarray['item_flags'] = $item_flags; $datarray['layout_mid'] = $layout_mid; $datarray['comment_policy'] = map_scope($channel['channel_w_comment']); + $datarray['term'] = $post_tags; // preview mode - prepare the body for display and send it via json @@ -685,21 +686,6 @@ function item_post(&$a) { if($post_id) { logger('mod_item: saved item ' . $post_id); - if(count($post_tags)) { - foreach($post_tags as $tag) { - if(strlen(trim($tag['term']))) { - q("insert into term (uid,oid,otype,type,term,url) values (%d,%d,%d,%d,'%s','%s')", - intval($tag['uid']), - intval($post_id), - intval($tag['otype']), - intval($tag['type']), - dbesc(trim($tag['term'])), - dbesc(trim($tag['url'])) - ); - } - } - } - if($parent) { $r = q("UPDATE `item` SET `changed` = '%s' WHERE `parent` = %d ", -- cgit v1.2.3