Notifications: unsubscribe from extension approval activity (#177) #207

Merged
Oleg-Komarov merged 5 commits from approval-follow into main 2024-07-30 12:11:05 +02:00
Showing only changes of commit 3f56a87d74 - Show all commits

View File

@ -170,7 +170,7 @@ class ExtensionsApprovalFollowView(LoginRequiredMixin, DetailView):
extension = self.get_object()
user = request.user
if request.POST.get('follow'):
follow(user, extension, flag=Flag.REVIEWER)
follow(user, extension, send_action=False, flag=Flag.REVIEWER)
else:
unfollow(user, extension, flag=Flag.REVIEWER)
unfollow(user, extension, send_action=False, flag=Flag.REVIEWER)
return redirect(extension.get_review_url() + '#activity')