aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-25 12:12:25 -0800
committerFriendika <info@friendika.com>2011-02-25 12:12:25 -0800
commitc3cb3d75e593faa06e4050a016ef1893bd5a4a3a (patch)
tree6bc57dcb3960a58a695bed571544944293a30758 /mod/profiles.php
parent3195ad8d2e94127019405525cf41d0026ccf8c40 (diff)
downloadvolse-hubzilla-c3cb3d75e593faa06e4050a016ef1893bd5a4a3a.tar.gz
volse-hubzilla-c3cb3d75e593faa06e4050a016ef1893bd5a4a3a.tar.bz2
volse-hubzilla-c3cb3d75e593faa06e4050a016ef1893bd5a4a3a.zip
use consistent tagging patterns with relationship partner
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 4e3f03799..9e19caa0b 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -68,7 +68,10 @@ function profiles_post(&$a) {
if($with != strip_tags($orig[0]['with'])) {
$prf = '';
$lookup = $with;
- if((strpos($lookup,'@')) || (strpos($lookup,'http://'))) {
+ if(strpos($lookup,'@') === 0)
+ $lookup = substr($lookup,1);
+ $lookup = str_replace('_',' ', $lookup);
+ if(strpos($lookup,'@') || (strpos($lookup,'http://'))) {
$newname = $lookup;
$links = @lrdd($lookup);
if(count($links)) {
@@ -101,6 +104,8 @@ function profiles_post(&$a) {
if($prf) {
$with = str_replace($lookup,'<a href="' . $prf . '">' . $newname . '</a>', $with);
+ if(strpos($with,'@') === 0)
+ $with = substr($with,1);
}
}
else