Browse Source

Merge pull request #3349 from annando/1704-api-owner

API: The "friendica-owner" has only to be different from the user on starting posts
tags/3.5.2
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
1955d3d1b8
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      include/api.php

+ 5
- 1
include/api.php View File

@@ -726,7 +726,11 @@ use \Friendica\Core\Config;
($item["deny_gid"] != "") OR
$item["private"]);

$owner_user = api_get_user($a, $item["owner-link"]);
if ($item['thr-parent'] == $item['uri']) {
$owner_user = api_get_user($a, $item["owner-link"]);
} else {
$owner_user = $status_user;
}

return (array($status_user, $owner_user));
}


Loading…
Cancel
Save