Database version increased, code simplified

This commit is contained in:
Michael 2022-02-15 15:44:44 +00:00
parent 29d83c0ffb
commit d019ef57d2
3 changed files with 6 additions and 11 deletions

View file

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2022.05-dev (Siberian Iris)
-- DB_UPDATE_VERSION 1451
-- DB_UPDATE_VERSION 1452
-- ------------------------------------------

View file

@ -2516,11 +2516,6 @@ class Item
return true;
}
$allow_cid = $allow_cid ?? $item['allow_cid'];
$allow_gid = $allow_gid ?? $item['allow_gid'];
$deny_cid = $deny_cid ?? $item['deny_cid'];
$deny_gid = $deny_gid ?? $item['deny_gid'];
$objtype = $item['resource-id'] ? Activity\ObjectType::IMAGE : Activity\ObjectType::NOTE;
$new_item = [
@ -2541,10 +2536,10 @@ class Item
'body' => $activity,
'verb' => $activity,
'object-type' => $objtype,
'allow_cid' => $allow_cid,
'allow_gid' => $allow_gid,
'deny_cid' => $deny_cid,
'deny_gid' => $deny_gid,
'allow_cid' => $allow_cid ?? $item['allow_cid'],
'allow_gid' => $allow_gid ?? $item['allow_gid'],
'deny_cid' => $deny_cid ?? $item['deny_cid'],
'deny_gid' => $deny_gid ?? $item['deny_gid'],
'visible' => 1,
'unseen' => 1,
];

View file

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1451);
define('DB_UPDATE_VERSION', 1452);
}
return [