mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:10:11 +00:00
Bugfix for failed events page and api
This commit is contained in:
parent
b81a1fde09
commit
0c310db23d
2 changed files with 9 additions and 6 deletions
|
@ -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"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue