aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-02 09:59:36 +0000
committerMario <mario@mariovavti.com>2022-02-02 09:59:36 +0000
commitbacf19688f8bd795bed5c56197ea1273f8b27535 (patch)
tree717c96aa01b59e015cf88faf2729c948f9279ec6 /Zotlabs
parent31fbdcf6c5b7a92bcdb408df887175b80b4937fb (diff)
downloadvolse-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.php5
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) {