we've been storing json_encoded structures on disk in several places because it's a lot easier to parse than xml - but OMG do they get mangled - stored as single quoted strings when escaped as if double quoted. We need to use my new function json_decode_plus() wherever we need to parse one of these babies to make sure we get it right. Maybe we should've just used serialize().

This commit is contained in:
friendica
2013-08-06 03:29:57 -07:00
parent 576b815f9b
commit 71347bb9e0
4 changed files with 14 additions and 7 deletions

View File

@@ -50,13 +50,13 @@ function notification($params) {
$additional_mail_header = "";
if(array_key_exists('item',$params)) {
// if it's a normal item...
if(array_key_exists('verb',$params['item'])) {
require_once('include/conversation.php');
// localize_item() alters the original item so make a copy first
$i = $params['item'];
logger('calling localize');
localize_item($i);
$title = $i['title'];
$body = $i['body'];
@@ -70,6 +70,7 @@ function notification($params) {
$title = $body = '';
}
// e.g. "your post", "David's photo", etc.
$possess_desc = t('%s <!item_type!>');