mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Non public content is now displayed again to visitors.
This commit is contained in:
parent
8fbe0d46e9
commit
f2e2066d33
4 changed files with 43 additions and 26 deletions
|
@ -3214,7 +3214,7 @@ class Item extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
public static function getPermissionsSQLByUserId($owner_id, $remote_verified = false, $groups = null)
|
||||
public static function getPermissionsSQLByUserId($owner_id, $remote_verified = false, $groups = null, $remote_cid = null)
|
||||
{
|
||||
$local_user = local_user();
|
||||
$remote_user = remote_user();
|
||||
|
@ -3237,7 +3237,7 @@ class Item extends BaseObject
|
|||
* If pre-verified, the caller is expected to have already
|
||||
* done this and passed the groups into this function.
|
||||
*/
|
||||
$set = PermissionSet::get($owner_id, $remote_user, $groups);
|
||||
$set = PermissionSet::get($owner_id, $remote_cid, $groups);
|
||||
|
||||
if (!empty($set)) {
|
||||
$sql_set = " OR (`item`.`private` IN (1,2) AND `item`.`wall` AND `item`.`psid` IN (" . implode(',', $set) . "))";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue