From ba3cff6d9a505e22732c800430e34adb7e55f3a4 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Feb 2013 00:20:14 -0800 Subject: progress on tag delivery --- mod/channel.php | 2 +- mod/display.php | 2 +- mod/events.php | 2 +- mod/item.php | 6 +++--- mod/network.php | 4 ++-- mod/page.php | 2 +- mod/search.php | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'mod') diff --git a/mod/channel.php b/mod/channel.php index 7869e54db..0a49b41eb 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -211,7 +211,7 @@ function channel_content(&$a, $update = 0, $load = false) { ); xchan_query($items); - $items = fetch_post_tags($items); + $items = fetch_post_tags($items, true); $items = conv_sort($items,'created'); } else { diff --git a/mod/display.php b/mod/display.php index f18587e1e..3c2172c7d 100644 --- a/mod/display.php +++ b/mod/display.php @@ -123,7 +123,7 @@ function display_content(&$a, $update = 0, $load = false) { ); xchan_query($items); - $items = fetch_post_tags($items); + $items = fetch_post_tags($items,true); $items = conv_sort($items,'created'); } } else { diff --git a/mod/events.php b/mod/events.php index f18f40cc7..8c509cfea 100755 --- a/mod/events.php +++ b/mod/events.php @@ -261,7 +261,7 @@ function events_content(&$a) { if($r) { xchan_query($r); - $r = fetch_post_tags($r); + $r = fetch_post_tags($r,true); $r = sort_by_date($r); diff --git a/mod/item.php b/mod/item.php index 3cea8b22c..8298d3dc0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -927,8 +927,8 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { ); }*/ //$r is set, if someone could be selected - if(count($r)) { - $profile = chanlink_url($r[0]['xchan_url']); + if($r) { + $profile = $r[0]['xchan_url']; $newname = $r[0]['xchan_name']; //add person's id to $inform if(strlen($inform)) @@ -941,7 +941,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { $replaced = true; //create profile link $profile = str_replace(',','%2c',$profile); - $url = chanlink_url($profile); + $url = $profile; $newtag = '@[url=' . $profile . ']' . $newname . '[/url]'; $body = str_replace('@' . $name, $newtag, $body); //append tag to str_tags diff --git a/mod/network.php b/mod/network.php index 88c7520dd..dae9fa6be 100644 --- a/mod/network.php +++ b/mod/network.php @@ -608,7 +608,7 @@ function network_content(&$a, $update = 0, $load = false) { xchan_query($items); - $items = fetch_post_tags($items); + $items = fetch_post_tags($items,true); } elseif($update) { @@ -670,7 +670,7 @@ function network_content(&$a, $update = 0, $load = false) { $third = dba_timer(); - $items = fetch_post_tags($items); + $items = fetch_post_tags($items,true); $fourth = dba_timer(); diff --git a/mod/page.php b/mod/page.php index a10b354f2..62f9d9204 100644 --- a/mod/page.php +++ b/mod/page.php @@ -36,7 +36,7 @@ function page_content(&$a) { } xchan_query($r); - $r = fetch_post_tags($r); + $r = fetch_post_tags($r,true); $a->profile = array('profile_uid' => $u[0]['channel_id']); $o .= prepare_page($r[0]); return $o; diff --git a/mod/search.php b/mod/search.php index f76254116..1bea720a6 100644 --- a/mod/search.php +++ b/mod/search.php @@ -219,7 +219,7 @@ function search_content(&$a) { ); xchan_query($items); - $items = fetch_post_tags($items); + $items = fetch_post_tags($items,true); $items = conv_sort($items,'created'); } else { @@ -249,7 +249,7 @@ function search_content(&$a) { ); -// $a = fetch_post_tags($a); +// $a = fetch_post_tags($a,true); if(! count($r)) { info( t('No results.') . EOL); -- cgit v1.2.3