aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-18 21:52:54 -0700
committerfriendica <info@friendica.com>2013-06-18 21:52:54 -0700
commit9d03da134807a55c74a5b15895356dc8990f01db (patch)
treef2cb51faffa41d3aad6cfb5088e16536196dece7
parent0b935b79dcb82bccd45bf8f68409b6cdf0fceb40 (diff)
downloadvolse-hubzilla-9d03da134807a55c74a5b15895356dc8990f01db.tar.gz
volse-hubzilla-9d03da134807a55c74a5b15895356dc8990f01db.tar.bz2
volse-hubzilla-9d03da134807a55c74a5b15895356dc8990f01db.zip
fall back on object author/actor if no owner
-rw-r--r--include/conversation.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/conversation.php b/include/conversation.php
index e12aa1fbc..410143a7a 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -127,12 +127,12 @@ function localize_item(&$item){
break;
case ACTIVITY_OBJ_THING:
$post_type = $obj['title'];
- $author_name = (($obj['owner'] && $obj['owner']['name']) ? $obj['owner']['name'] : '');
- if($obj['owner'] && $obj['owner']['link'])
- $author_link = get_rel_link($obj['owner']['link'],'alternate');
- else
- $author_link = '';
-
+ if($obj['owner']) {
+ if(array_key_exists('name',$obj['owner']))
+ $obj['owner']['name'];
+ if(array_key_exists('link',$obj['owner']))
+ $author_link = get_rel_link($obj['owner']['link'],'alternate');
+ }
if($obj['link']) {
$Bphoto = get_rel_link($obj['link'],'photo');
}