aboutsummaryrefslogtreecommitdiff
path: root/lib/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index f782f0386..34b054898 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -138,7 +138,7 @@
*/
public function addView($viewer_guid)
{
- if ($viewer_guid != $this->owner_guid)
+ if ($viewer_guid != $this->owner_guid && tp_is_person())
create_annotation($this->getGUID(), "tp_view", "1", "integer", $viewer_guid, ACCESS_PUBLIC);
}
}