From d124fec101c9b2a2be29587cb4eff5826b78623d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 2 Aug 2009 23:44:40 +0000 Subject: tags go to river now --- actions/addtag.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/addtag.php b/actions/addtag.php index fb299dee6..fa2b4b3c6 100644 --- a/actions/addtag.php +++ b/actions/addtag.php @@ -74,8 +74,13 @@ if ($image->annotate('phototag', serialize($tag), $access_id, $owner_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)) + if (!check_entity_relationship($user_id, 'phototag', $image_guid)) { add_entity_relationship($user_id, 'phototag', $image_guid); + + // also add this to the river + if (function_exists('add_to_river')) + add_to_river('river/object/image/tag', 'tag', $image_guid, $user_id); // subject is image + } } system_message(elgg_echo("tidypics:phototagging:success")); -- cgit v1.2.3