New option to disallow

This commit is contained in:
Michael 2024-01-07 19:22:56 +00:00
parent c4b85ef25a
commit d2a74d1936
8 changed files with 35 additions and 10 deletions

View file

@ -1452,6 +1452,10 @@ class Item
private static function reshareChannelPost(int $uri_id)
{
if (!DI::config()->get('system', 'allow_relay_channels')) {
return;
}
$item = Post::selectFirst(['id', 'private', 'network', 'language', 'owner-id'], ['uri-id' => $uri_id, 'uid' => 0]);
if (empty($item['id'])) {
return;