]> git.mxchange.org Git - friendica.git/commitdiff
GUID should be urlencoded in template since it is urlencoded in uri as well.
authorMichael Vogel <icarus@dabo.de>
Sat, 11 Jul 2015 12:37:02 +0000 (14:37 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 11 Jul 2015 12:37:02 +0000 (14:37 +0200)
include/diaspora.php
object/Item.php

index b70cffdc39efebd8cf0073887301a8891653a387..86a55f473f8b34c6ff63b2f2ba56db4564ac7ef9 100755 (executable)
@@ -1,5 +1,11 @@
 <?php
 
+/*
+To-Do:
+- GET /people/9aed8882b9f64896/stream
+- POST /receive/users/9aed8882b9f64896/
+*/
+
 require_once('include/crypto.php');
 require_once('include/items.php');
 require_once('include/bb2diaspora.php');
index 3211048cef6745a124fb6987912fcfcfdb4ebb8a..75f99742eb3e4ee41a661c6f43df4a4ba8335017 100644 (file)
@@ -325,7 +325,7 @@ class Item extends BaseObject {
                        'body' => $body_e,
                        'text' => $text_e,
                        'id' => $this->get_id(),
-                       'guid' => $item['guid'],
+                       'guid' => urlencode($item['guid']),
                        'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
                        'olinktitle' => sprintf( t('View %s\'s profile @ %s'), $this->get_owner_name(), ((strlen($item['owner-link'])) ? $item['owner-link'] : $item['url'])),
                        'to' => t('to'),