]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
river event for tagging is now picking up access level from image
authorCash Costello <cash.costello@gmail.com>
Wed, 19 Aug 2009 01:49:37 +0000 (01:49 +0000)
committerCash Costello <cash.costello@gmail.com>
Wed, 19 Aug 2009 01:49:37 +0000 (01:49 +0000)
actions/addtag.php

index fa2b4b3c6f891b1c0468ef3ce431e8a8e772f3e8..3f623fc86cf36b8beef9528a85585864c0ef75f7 100644 (file)
@@ -77,9 +77,9 @@
                        if (!check_entity_relationship($user_id, 'phototag', $image_guid)) {\r
                                add_entity_relationship($user_id, 'phototag', $image_guid);\r
                                \r
-                               // also add this to the river\r
+                               // also add this to the river - subject is image, object is the tagged user\r
                                if (function_exists('add_to_river'))\r
-                                       add_to_river('river/object/image/tag', 'tag', $image_guid, $user_id); // subject is image\r
+                                       add_to_river('river/object/image/tag', 'tag', $image_guid, $user_id, $access_id); \r
                        }\r
                }\r
        \r