diff options
author | Mario <mario@mariovavti.com> | 2022-02-02 09:59:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-02 09:59:36 +0000 |
commit | bacf19688f8bd795bed5c56197ea1273f8b27535 (patch) | |
tree | 717c96aa01b59e015cf88faf2729c948f9279ec6 /Zotlabs | |
parent | 31fbdcf6c5b7a92bcdb408df887175b80b4937fb (diff) | |
download | volse-hubzilla-bacf19688f8bd795bed5c56197ea1273f8b27535.tar.gz volse-hubzilla-bacf19688f8bd795bed5c56197ea1273f8b27535.tar.bz2 volse-hubzilla-bacf19688f8bd795bed5c56197ea1273f8b27535.zip |
a like could be stored as item or activity so check both
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Dreport.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index 42f337b76..d6f4e5979 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -56,9 +56,10 @@ class Dreport extends \Zotlabs\Web\Controller { return; } - $r = q("select * from dreport where dreport_xchan = '%s' and dreport_mid = '%s'", + $r = q("select * from dreport where dreport_xchan = '%s' and (dreport_mid = '%s' or dreport_mid = '%s')", dbesc($channel['channel_hash']), - dbesc($mid) + dbesc($mid), + dbesc(str_replace('/item/', '/activity/', $mid)) ); if(! $r) { |