mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Missing stuff in "develop"? (#5516)
* "post-type" replaces "bookmark" and "type" * Removed some more type * Added index to permission set * The permission set is now stored * The permission set is now removed upon expiry * Post update now stores the permission set * New file * Permissions are now sorted * The permission set is now used for item permissions * Check for allow_cid, ... is superfluous. Checking for "private" is enough * We query the permissionset * Permissions are displayed correctly * Changed index * We don't store the permissions in the item table anymore * Permission fields are now deprecated * Reversed ... * Postupdate now handles "postopts" as well * Set deprecated fields to "null" if empty * Postupdates are enabled again * "post-type" replaces "bookmark" and "type" * The permission set is now stored * The permission set is now removed upon expiry * Postupdate now handles "postopts" as well
This commit is contained in:
parent
0902ea508d
commit
36d4516e7a
5 changed files with 19 additions and 7 deletions
|
@ -16,6 +16,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\PermissionSet;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Protocol\OStatus;
|
||||
|
|
|
@ -22,11 +22,6 @@ class PermissionSet extends BaseObject
|
|||
*/
|
||||
public static function fetchIDForPost(&$postarray)
|
||||
{
|
||||
if (is_null($postarray['allow_cid']) || is_null($postarray['allow_gid'])
|
||||
|| is_null($postarray['deny_cid']) || is_null($postarray['deny_gid'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$condition = ['uid' => $postarray['uid'],
|
||||
'allow_cid' => self::sortPermissions(defaults($postarray, 'allow_cid', '')),
|
||||
'allow_gid' => self::sortPermissions(defaults($postarray, 'allow_gid', '')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue