aboutsummaryrefslogtreecommitdiff
path: root/actions/addtag.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-02 23:44:40 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-02 23:44:40 +0000
commitd124fec101c9b2a2be29587cb4eff5826b78623d (patch)
treeb0ac9d7dce4375ff26462991a93ff4d3ac4f21b4 /actions/addtag.php
parent6c9af8f91b34f9f2f31e58ede1f97f6e4d130928 (diff)
downloadelgg-d124fec101c9b2a2be29587cb4eff5826b78623d.tar.gz
elgg-d124fec101c9b2a2be29587cb4eff5826b78623d.tar.bz2
tags go to river now
Diffstat (limited to 'actions/addtag.php')
-rw-r--r--actions/addtag.php7
1 files changed, 6 insertions, 1 deletions
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"));