GUID should be urlencoded in template since it is urlencoded in uri as well.

pull/1751/head
Michael Vogel 2015-07-11 14:37:02 +02:00
rodzic bc6e5a4f2d
commit d55275f211
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -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');

Wyświetl plik

@ -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'),