aboutsummaryrefslogtreecommitdiff
path: root/actions/addtag.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-29 11:28:00 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-29 11:28:00 +0000
commit9e0d8ea4aa08f6390c0f93f6466c2a101dffcbed (patch)
tree17599dbfb02929b524384dff386efa5a66b724cd /actions/addtag.php
parent893364a28955358ad259bfb75798560616ab3d49 (diff)
downloadelgg-9e0d8ea4aa08f6390c0f93f6466c2a101dffcbed.tar.gz
elgg-9e0d8ea4aa08f6390c0f93f6466c2a101dffcbed.tar.bz2
tags now support avatars on riverdashboard (but no longer support versions of Elgg < 1.7)
Diffstat (limited to 'actions/addtag.php')
-rw-r--r--actions/addtag.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/addtag.php b/actions/addtag.php
index 9e5313b7f..97418f495 100644
--- a/actions/addtag.php
+++ b/actions/addtag.php
@@ -71,14 +71,15 @@ $owner_id = get_loggedin_userid();
$tagger = get_loggedin_user();
//Save annotation
-if ($image->annotate('phototag', serialize($tag), $access_id, $owner_id)) {
+$annotation_id = $image->annotate('phototag', serialize($tag), $access_id, $owner_id);
+if ($annotation_id) {
// if tag is a user id, add relationship for searching (find all images with user x)
if ($relationships_type === 'user') {
if (!check_entity_relationship($user_id, 'phototag', $image_guid)) {
add_entity_relationship($user_id, 'phototag', $image_guid);
// also add this to the river - subject is image, object is the tagged user
- add_to_river('river/object/image/tag', 'tag', $image_guid, $user_id, $access_id);
+ add_to_river('river/object/image/tag', 'tag', $tagger->guid, $user_id, $access_id, 0, $annotation_id);
// notify user of tagging as long as not self
if ($owner_id != $user_id) {