1
1
Fork 0

Use correct request parameter type for poke privacy

This commit is contained in:
Hypolite Petovan 2020-12-22 01:02:42 -05:00
parent 043e2224b0
commit 2ef5bf1e21

View file

@ -51,7 +51,7 @@ class Poke extends BaseModule
$a = DI::app(); $a = DI::app();
$private = (!empty($_GET['private']) ? intval($_GET['private']) : Model\Item::PUBLIC); $private = !empty($_POST['private']) ? Model\Item::PRIVATE : Model\Item::PUBLIC;
$allow_cid = ($private ? '<' . $contact['id']. '>' : $a->user['allow_cid']); $allow_cid = ($private ? '<' . $contact['id']. '>' : $a->user['allow_cid']);
$allow_gid = ($private ? '' : $a->user['allow_gid']); $allow_gid = ($private ? '' : $a->user['allow_gid']);