aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/image.php')
-rw-r--r--views/default/object/image.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index e38576abf..ba3bb0272 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -126,7 +126,9 @@ if ($photo_tags) {
$the_viewer = 0;
}
- create_annotation($file_guid, "tp_view", "1", "integer", $the_viewer, ACCESS_PUBLIC);
+ // only non-owner views count
+ if ($owner->guid != $view->owner_guid)
+ create_annotation($file_guid, "tp_view", "1", "integer", $the_viewer, ACCESS_PUBLIC);
$views_a = get_annotations($file_guid, "object", "image", "tp_view", "", 0, 9999);
$views = count($views_a);