mirror of
https://github.com/friendica/friendica
synced 2024-11-20 03:43:41 +00:00
Use correct request parameter type for poke privacy
This commit is contained in:
parent
043e2224b0
commit
2ef5bf1e21
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class Poke extends BaseModule
|
|||
|
||||
$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_gid = ($private ? '' : $a->user['allow_gid']);
|
||||
|
|
Loading…
Reference in a new issue