aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-13 18:07:49 -0800
committerfriendica <info@friendica.com>2015-01-13 18:07:49 -0800
commit111bbe65d9f671f598b68da63d74555d68973358 (patch)
treebb081ac8acd5a3245e7022f64589bbf5d3c0180b /include
parente528483d8150b1495e96de5309ed383a5fd6e09b (diff)
parent47a2668b30de34f1f08983ba485a630a89a9dd1e (diff)
downloadvolse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.tar.gz
volse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.tar.bz2
volse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.zip
Merge branch 'moretagging' of git://github.com/pafcu/red into pafcu-moretagging
Conflicts: mod/profiles.php
Diffstat (limited to 'include')
-rw-r--r--include/identity.php14
-rw-r--r--include/text.php2
2 files changed, 2 insertions, 14 deletions
diff --git a/include/identity.php b/include/identity.php
index 2f400520f..d98f39cb7 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1205,21 +1205,9 @@ function advanced_profile(&$a) {
if($txt = prepare_text($a->profile['dislikes'])) $profile['dislikes'] = array( t('Dislikes:'), $txt);
-
if($txt = prepare_text($a->profile['contact'])) $profile['contact'] = array( t('Contact information and Social Networks:'), $txt);
- // Support tags in the other channels field (probably want to restrict it to channels only?)
- $txt = $a->profile['channels'];
- $matches = get_tags($txt);
- $access_tag = '';
- $str_tags = '';
- foreach($matches as $m) {
- $success = handle_tag($a, $txt, $access_tag, $str_tags, $a->profile_uid, $m); // Use uid of the profile maker
- }
-
- if($txt = prepare_text($txt)) {
- $profile['channels'] = array( t('My other channels:'), $txt);
- }
+ if($txt = prepare_text($a->profile['channels'])) $profile['channels'] = array( t('My other channels:'), $txt);
if($txt = prepare_text($a->profile['music'])) $profile['music'] = array( t('Musical interests:'), $txt);
diff --git a/include/text.php b/include/text.php
index 035c092a6..6b579e35c 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2351,7 +2351,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) {
return array('replaced' => $replaced, 'termtype' => $termtype, 'term' => $newname, 'url' => $url, 'contact' => $r[0]);
}
-function linkify_tags($a, &$body, $uid, $profile_uid) {
+function linkify_tags($a, &$body, $uid) {
$str_tags = '';
$tagged = array();
$result = array();