From 9e0d8ea4aa08f6390c0f93f6466c2a101dffcbed Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 29 Oct 2010 11:28:00 +0000 Subject: tags now support avatars on riverdashboard (but no longer support versions of Elgg < 1.7) --- actions/addtag.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'actions') 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) { -- cgit v1.2.3