X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=e0b378f685448a2ac95142bf25649e733e267319;hb=6797485f6eea4700d5801afdf7ed7567e4e3fdf1;hp=2df9de4763c77afe1bc55932b87284c8343f995a;hpb=8aa25523721303b6883e1a793f20997f8a33ec0a;p=friendica.git
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 2df9de4763..e0b378f685 100755
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -12,6 +12,13 @@ function parse_url_content(&$a) {
$text = null;
$str_tags = '';
+ $textmode = false;
+ if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
+ $textmode = true;
+
+ if($textmode)
+ $br = (($textmode) ? "\n" : '
' . implode(' ',$arr_tags) . '
';
+ $str_tags = $br . implode(' ',$arr_tags) . $br;
}
}
logger('parse_url: ' . $url);
- $template = "
%s%s
";
+ if($textmode)
+ $template = $br . '[bookmark=%s]%s[/bookmark]%s' . $br;
+ else
+ $template = "
%s%s
";
$arr = array('url' => $url, 'text' => '');
@@ -49,7 +59,11 @@ function parse_url_content(&$a) {
if($url && $title && $text) {
- $text = '
' . $text . '
' . $text . '
' . $text . '
' . $text . '