https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043e222
)
Use correct request parameter type for poke privacy
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Tue, 22 Dec 2020 06:02:42 +0000
(
01:02
-0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Tue, 22 Dec 2020 06:02:42 +0000
(
01:02
-0500)
src/Module/Contact/Poke.php
patch
|
blob
|
history
diff --git
a/src/Module/Contact/Poke.php
b/src/Module/Contact/Poke.php
index
73131da
..
5ecec4b
100644
(file)
--- a/
src/Module/Contact/Poke.php
+++ b/
src/Module/Contact/Poke.php
@@
-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']);