use consistent tagging patterns with relationship partner
This commit is contained in:
parent
3195ad8d2e
commit
c3cb3d75e5
2
boot.php
2
boot.php
|
@ -3,7 +3,7 @@
|
|||
set_time_limit(0);
|
||||
|
||||
define ( 'BUILD_ID', 1039 );
|
||||
define ( 'FRIENDIKA_VERSION', '2.10.0907' );
|
||||
define ( 'FRIENDIKA_VERSION', '2.10.0908' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
|
||||
|
||||
define ( 'EOL', "<br />\r\n" );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue