aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rwxr-xr-xmod/like.php2
-rw-r--r--mod/magic.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/like.php b/mod/like.php
index 70add59bd..ce7d28f5c 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -135,7 +135,7 @@ function like_content(&$a) {
if(! isset($bodyverb))
return;
- $item_flags = ITEM_ORIGIN;
+ $item_flags = ITEM_ORIGIN | ITEM_NOTSHOWN;
if($item['item_flags'] & ITEM_WALL)
$item_flags |= ITEM_WALL;
diff --git a/mod/magic.php b/mod/magic.php
index d6697f6cc..e655e9737 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -119,7 +119,7 @@ function magic_init(&$a) {
goaway($x[0]['hubloc_callback'] . '/' . substr($x[0]['hubloc_addr'],0,strpos($x[0]['hubloc_addr'],'@'))
. '/?f=&auth=' . $channel['channel_address'] . '@' . $a->get_hostname()
- . '&sec=' . $token . '&dest=' . $dest . '&version=' . ZOT_REVISION);
+ . '&sec=' . $token . '&dest=' . urlencode($dest) . '&version=' . ZOT_REVISION);
}
if(strpos($dest,'/'))