mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:15:16 +00:00
check site blocklists before embedding a remote post via the link tool
This commit is contained in:
parent
c70799dc2a
commit
69c26d64d1
1 changed files with 9 additions and 3 deletions
|
@ -200,9 +200,15 @@ class Linkinfo extends Controller {
|
|||
}
|
||||
|
||||
if ($z) {
|
||||
$s = new Zlib\Share($z);
|
||||
echo $s->bbcode();
|
||||
killme();
|
||||
|
||||
// do not allow somebody to embed a post that was blocked by the site admin
|
||||
// We *will* let them over-rule any blocks they created themselves
|
||||
|
||||
if (! (check_siteallowed($r['hubloc_id_url']) && check_channelallowed($z['author_xchan']))) {
|
||||
$s = new Zlib\Share($z);
|
||||
echo $s->bbcode();
|
||||
killme();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue