diff options
-rwxr-xr-x | bugzilla_update_user_comments.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bugzilla_update_user_comments.py b/bugzilla_update_user_comments.py index 9f92191..bff2192 100755 --- a/bugzilla_update_user_comments.py +++ b/bugzilla_update_user_comments.py @@ -58,10 +58,18 @@ def update(user): for key, xi in xcoms.iteritems(): com = coms[util.get_index(coms, "count", int(key))] content = com['text'] + + if com['is_private']: + vlog('is private') + comment_content = bzlib.security_mask + else: + vlog('is NOT private') + comment_content = content + xi['xattached'] + if com["creator"] == user['user']: log("Updating comment %s for %s" % (xi['xctransaction'], user['user'])) phabdb.set_comment_author(xi['xctransaction'], user['userphid']) - phabdb.set_comment_content(xi['xctransaction'], content + xi['xattached']) + phabdb.set_comment_content(xi['xctransaction'], comment_content) current = phabdb.get_user_migration_comment_history(user['user'], pmig) if current: |