mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove self from group after sending invite, fix #1509
This commit is contained in:
@@ -280,6 +280,7 @@ api.invite = function(req, res, next) {
|
||||
invite.save();
|
||||
Group.findById(group._id)
|
||||
.populate('members', partyFields).exec(function(err, saved){
|
||||
removeSelf(saved, res.locals.user);
|
||||
res.json(saved);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user