support rel=me on channel "homepage" url

This commit is contained in:
friendica 2015-02-24 00:45:03 -08:00
parent 2264ad5c6e
commit 11df605c2e
3 changed files with 4 additions and 4 deletions

View File

@ -893,7 +893,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|| (x($profile,'country_name') == 1)) || (x($profile,'country_name') == 1))
$location = t('Location:'); $location = t('Location:');
$profile['homepage'] = linkify($profile['homepage']); $profile['homepage'] = linkify($profile['homepage'],true);
$gender = ((x($profile,'gender') == 1) ? t('Gender:') : False); $gender = ((x($profile,'gender') == 1) ? t('Gender:') : False);
$marital = ((x($profile,'marital') == 1) ? t('Status:') : False); $marital = ((x($profile,'marital') == 1) ? t('Status:') : False);

View File

@ -873,8 +873,8 @@ function valid_email($x){
*/ */
function linkify($s) { function linkify($s,$me = false) {
$s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", ' <a href="$1" >$1</a>', $s); $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", (($me) ? ' <a href="$1" rel="me" >$1</a>' : ' <a href="$1" >$1</a>'), $s);
$s = preg_replace("/\<(.*?)(src|href)=(.*?)\&amp\;(.*?)\>/ism",'<$1$2=$3&$4>',$s); $s = preg_replace("/\<(.*?)(src|href)=(.*?)\&amp\;(.*?)\>/ism",'<$1$2=$3&$4>',$s);
return($s); return($s);
} }

View File

@ -1 +1 @@
2015-02-22.952 2015-02-24.953