aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-11 20:44:13 -0700
committerfriendica <info@friendica.com>2013-10-11 20:44:13 -0700
commit7cd1bd59b2544aae52a399761849f46bd7b8a066 (patch)
treebc26417db7a906761e8cd5a8ce9bba6f8dfd0fed /mod/item.php
parent09950745c10912f9875eb4a63793ff7e85bb7974 (diff)
downloadvolse-hubzilla-7cd1bd59b2544aae52a399761849f46bd7b8a066.tar.gz
volse-hubzilla-7cd1bd59b2544aae52a399761849f46bd7b8a066.tar.bz2
volse-hubzilla-7cd1bd59b2544aae52a399761849f46bd7b8a066.zip
bug 175 - categories not updated when editing
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php16
1 files changed, 1 insertions, 15 deletions
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 ",