From 1fc23f7b86573136b21a6965eb97b46f6242105b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 24 2015 09:22:04 +0000 Subject: Only issues have a private flag --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index a1e5a06..97ad254 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -874,7 +874,7 @@ def edit_comment(session, parent, comment, user, ) if REDIS: - if comment.parent.private: + if parent.isa == 'issue' and comment.parent.private: REDIS.publish('pagure.%s' % comment.parent.uid, json.dumps({ 'comment_updated': 'private', 'comment_id': comment.id,