diff options
author | Mario <mario@mariovavti.com> | 2024-02-01 11:42:55 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-01 11:42:55 +0000 |
commit | dd204ec34f473d7e0b133d35b08f3c4dc8d3ffef (patch) | |
tree | 3d995b7602c48721cf486585e1f3e3aa4b81fb0c /Zotlabs/Module/Dreport.php | |
parent | b3a5dd8aa8c8990e6139fc817f9c9f706d2e0976 (diff) | |
download | volse-hubzilla-dd204ec34f473d7e0b133d35b08f3c4dc8d3ffef.tar.gz volse-hubzilla-dd204ec34f473d7e0b133d35b08f3c4dc8d3ffef.tar.bz2 volse-hubzilla-dd204ec34f473d7e0b133d35b08f3c4dc8d3ffef.zip |
start using uuid for internal reference instead of base64 encoded mid
Diffstat (limited to 'Zotlabs/Module/Dreport.php')
-rw-r--r-- | Zotlabs/Module/Dreport.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index f5ad80eef..4a0ba4bbe 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -13,11 +13,10 @@ class Dreport extends \Zotlabs\Web\Controller { $table = 'item'; $channel = \App::get_channel(); - $mid = ((argc() > 1) ? unpack_link_id(argv(1)) : ''); + $mid = $_REQUEST['mid'] ?? ''; - if($mid === 'push') { + if(argv(1) === 'push') { $table = 'push'; - $mid = ((argc() > 2) ? unpack_link_id(argv(2)) : ''); if($mid) { $i = q("select id from item where mid = '%s' and uid = %d and ( author_xchan = '%s' or ( owner_xchan = '%s' and item_wall = 1 )) ", |