Bugfix for failed events page and api

This commit is contained in:
Michael 2017-01-16 20:59:16 +00:00
parent b81a1fde09
commit 0c310db23d
2 changed files with 9 additions and 6 deletions

View file

@ -2344,6 +2344,9 @@
* dislikes => int count
*/
function api_format_items_activities(&$item, $type = "json") {
$a = get_app();
$activities = array(
'like' => array(),
'dislike' => array(),
@ -2521,9 +2524,9 @@
// Retweets are only valid for top postings
// It doesn't work reliable with the link if its a feed
#$IsRetweet = ($item['owner-link'] != $item['author-link']);
#if ($IsRetweet)
# $IsRetweet = (($item['owner-name'] != $item['author-name']) OR ($item['owner-avatar'] != $item['author-avatar']));
//$IsRetweet = ($item['owner-link'] != $item['author-link']);
//if ($IsRetweet)
// $IsRetweet = (($item['owner-name'] != $item['author-name']) OR ($item['owner-avatar'] != $item['author-avatar']));
if ($item["id"] == $item["parent"]) {