aboutsummaryrefslogtreecommitdiff
path: root/mostviewedimagestoday.php
diff options
context:
space:
mode:
Diffstat (limited to 'mostviewedimagestoday.php')
-rw-r--r--mostviewedimagestoday.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mostviewedimagestoday.php b/mostviewedimagestoday.php
index 04f051317..b971771ba 100644
--- a/mostviewedimagestoday.php
+++ b/mostviewedimagestoday.php
@@ -26,7 +26,7 @@
FROM " . $prefix . "entities ent
INNER JOIN " . $prefix . "entity_subtypes sub ON ent.subtype = sub.id
AND sub.subtype = 'image'
- INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid
+ INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid AND ann1.owner_guid != ent.owner_guid
INNER JOIN " . $prefix . "metastrings ms ON ms.id = ann1.name_id
AND ms.string = 'tp_view'
WHERE ann1.time_created BETWEEN $time_info->start AND $time_info->end