gatekeeper();\r
action_gatekeeper();\r
\r
- //$user_id = get_input('user_id');\r
$image_guid = get_input('image_guid');\r
$tags = get_input('tags');\r
\r
}\r
}\r
\r
+ // delete relationship if this tag is a user\r
+ $annotation = get_annotation($id);\r
+ $photo_tag = unserialize($annotation->value);\r
+ if ($photo_tag->type == 'user') {\r
+ remove_entity_relationship($photo_tag->value, 'phototag', $image_guid);\r
+ }\r
+ \r
// delete the photo tag annotation\r
delete_annotation($id);\r
}\r