From f0af4de4a795ed3914f0e8e8ae3417a315d3dcd3 Mon Sep 17 00:00:00 2001
From: Friendika <info@friendika.com>
Date: Thu, 4 Aug 2011 19:19:51 -0700
Subject: [PATCH] wrap text from imported link in [quote]

---
 boot.php          | 14 +++++++++++++-
 mod/parse_url.php |  2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/boot.php b/boot.php
index 3d1d884e30..35f295d068 100644
--- 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'].
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 46c6b46e97..9bb0bc4640 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -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);