Notifications: unsubscribe from extension approval activity (#177) #207
@ -170,7 +170,7 @@ class ExtensionsApprovalFollowView(LoginRequiredMixin, DetailView):
|
|||||||
extension = self.get_object()
|
extension = self.get_object()
|
||||||
user = request.user
|
user = request.user
|
||||||
if request.POST.get('follow'):
|
if request.POST.get('follow'):
|
||||||
follow(user, extension, flag=Flag.REVIEWER)
|
follow(user, extension, send_action=False, flag=Flag.REVIEWER)
|
||||||
else:
|
else:
|
||||||
unfollow(user, extension, flag=Flag.REVIEWER)
|
unfollow(user, extension, send_action=False, flag=Flag.REVIEWER)
|
||||||
return redirect(extension.get_review_url() + '#activity')
|
return redirect(extension.get_review_url() + '#activity')
|
||||||
|
Loading…
Reference in New Issue
Block a user