-- ------------------------------------------
-- Friendica 2022.05-dev (Siberian Iris)
--- DB_UPDATE_VERSION 1451
+-- DB_UPDATE_VERSION 1452
-- ------------------------------------------
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 = [
'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,
];
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1451);
+ define('DB_UPDATE_VERSION', 1452);
}
return [