]> git.mxchange.org Git - friendica.git/commitdiff
wrap text from imported link in [quote]
authorFriendika <info@friendika.com>
Fri, 5 Aug 2011 02:19:51 +0000 (19:19 -0700)
committerFriendika <info@friendika.com>
Fri, 5 Aug 2011 02:19:51 +0000 (19:19 -0700)
boot.php
mod/parse_url.php

index 3d1d884e308750c40bffbfffc7426d7b160368e3..35f295d068cb1fc59e4f273a5c0fedfb3b1c1bc2 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -7,7 +7,7 @@ require_once('include/text.php');
 require_once("include/pgettext.php");
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1061' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1062' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1077      );
 
@@ -607,6 +607,18 @@ function check_config(&$a) {
 }}
 
 
+function get_guid() {
+       $exists = true;
+       do {
+               $s = random_string(16);
+               $r = q("select id from guid where guid = '%s' limit 1", dbesc($s));
+               if(! results($r))
+                       $exists = false;
+       } while($exists);
+       q("insert into guid ( guid ) values ( '%s' ) ", dbesc($s));
+       return $s;
+}
+
 
 // wrapper for adding a login box. If $register == true provide a registration
 // link. This will most always depend on the value of $a->config['register_policy'].
index 46c6b46e97998e3db59b542d11b3b15b937c8fe4..9bb0bc46408e76f3a090d512c3d01fc63bc2bafa 100644 (file)
@@ -116,7 +116,7 @@ function parse_url_content(&$a) {
        }
 
        if(strlen($text)) {
-               $text = '<br /><br />' . $text;
+               $text = '<br /><br /><blockquote>' . $text . '</blockquote><br />';
        }
 
        echo sprintf($template,$url,($title) ? $title : $url,$text);