aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-31 04:19:26 -0700
committerfriendica <info@friendica.com>2013-08-31 04:19:26 -0700
commitd43a7659854c4bb6052c05a932b257883ea72748 (patch)
treeab0917c4cd717efd38ee043ddc18ff50c6fdaa6e /include/conversation.php
parent74582630177b104f35113cee77d2c7ac5f74f412 (diff)
downloadvolse-hubzilla-d43a7659854c4bb6052c05a932b257883ea72748.tar.gz
volse-hubzilla-d43a7659854c4bb6052c05a932b257883ea72748.tar.bz2
volse-hubzilla-d43a7659854c4bb6052c05a932b257883ea72748.zip
more debugging on localize_item top find out why likes are not translated in notifications, but are in displayed posts (using 'new' on matrix page) - in one case we're successfully pulling stuff from item['object'] and in the other we aren't - and it's the same object.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 82010b153..2157f8291 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -92,8 +92,14 @@ function item_redir_and_replace_images($body, $images, $cid) {
function localize_item(&$item){
if (activity_match($item['verb'],ACTIVITY_LIKE) || activity_match($item['verb'],ACTIVITY_DISLIKE)){
-
+
+ if(! $item['object'])
+ return;
+
$obj = json_decode_plus($item['object']);
+ if((! $obj) && ($item['object'])) {
+ logger('localize_item: failed to decode object: ' . print_r($item['object'],true));
+ }
if($obj['author'] && $obj['author']['link'])
$author_link = get_rel_link($obj['author']['link'],'alternate');