mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:04:22 +02:00
New option to disallow
This commit is contained in:
parent
c4b85ef25a
commit
d2a74d1936
8 changed files with 35 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue