From 55ac458941c61541e8405bffe0ea6fe297342fd4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 26 2018 12:37:01 +0000 Subject: Fix commenting on PRs and issues if the SSE is not configured at all Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index bb7273d..1223377 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -664,10 +664,14 @@ $(document).ready(function() { {% if config['EVENTSOURCE_SOURCE'] and not issue.private %} +{% endif %} + -{% endif %} - -{% if config['EVENTSOURCE_SOURCE'] and pull_request %} +{% else %} +sse = false; {% endif %} + {% if repo.quick_replies %}