aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/join.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php
index 639ed14da..bf6e95482 100644
--- a/mod/groups/actions/join.php
+++ b/mod/groups/actions/join.php
@@ -32,6 +32,10 @@
{
system_message(elgg_echo("groups:joined"));
+ // Remove any invite or join request flags
+ remove_metadata($user->guid, 'group_invite', $group->guid);
+ remove_metadata($user->guid, 'group_join_request', $group->guid);
+
forward($group->getURL());
exit;
}