[FIX] mail: right user_ids when calling /mail/follow
On a SO, write a note to a user The mail the user receives contains a follow button Click on it Before this commit, the link did not add the user as follower of the SO this was because the wrong uid was passed to the function After this commit, user is added as follower OPW 1869849 closes #26634
This commit is contained in:
@@ -194,7 +194,7 @@ class MailController(http.Controller):
|
||||
comparison, record, redirect = self._check_token_and_record_or_redirect(model, int(res_id), token)
|
||||
if comparison and record:
|
||||
try:
|
||||
record.sudo().message_subscribe_users()
|
||||
record.sudo().message_subscribe_users(user_ids=[request.uid])
|
||||
except Exception:
|
||||
return self._redirect_to_messaging()
|
||||
return redirect
|
||||
|
||||
Reference in New Issue
Block a user