aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-30 23:04:27 -0700
committerfriendica <info@friendica.com>2013-06-30 23:04:27 -0700
commit822a4a028718b81119ab51e47145b2ddf87b775c (patch)
treea539dcfea5722a94c4c37df6415b6a9485f1098c /include/items.php
parent9fd4d5f0ccd6ed3f9d6ce79e3ad0b1b338b34b1b (diff)
downloadvolse-hubzilla-822a4a028718b81119ab51e47145b2ddf87b775c.tar.gz
volse-hubzilla-822a4a028718b81119ab51e47145b2ddf87b775c.tar.bz2
volse-hubzilla-822a4a028718b81119ab51e47145b2ddf87b775c.zip
fix some community tagging bugs
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 2169dfe37..c4ffcbca6 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1874,7 +1874,9 @@ function tag_deliver($uid,$item_id) {
$j_obj = json_decode($item['object'],true);
logger('tag_deliver: tag object: ' . print_r($j_obj,true), LOGGER_DATA);
if($j_obj && $j_obj['id'] && $j_obj['title']) {
- store_item_tag($u[0]['channel_id'],$p[0]['id'],TERM_OBJ_POST,TERM_HASHTAG,$j_obj['title'],$j['obj']['id']);
+ if(is_array($j_obj['link']))
+ $taglink = get_rel_link($j_obj['link'],'alternate');
+ store_item_tag($u[0]['channel_id'],$p[0]['id'],TERM_OBJ_POST,TERM_HASHTAG,$j_obj['title'],$j_obj['id']);
proc_run('php','include/notifier.php','edit_post',$p[0]['id']);
}
}