From 8d8705ec985d5290d4f2b66af0b643b4c384a109 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Apr 25 2016 10:30:41 +0000 Subject: Encode user to json before adding to authors Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/hooks/files/fedmsg_hook.py b/pagure/hooks/files/fedmsg_hook.py index f363c4f..bf7849b 100755 --- a/pagure/hooks/files/fedmsg_hook.py +++ b/pagure/hooks/files/fedmsg_hook.py @@ -61,7 +61,7 @@ for line in sys.stdin.readlines(): email = pagure.lib.git.get_author_email(rev, abspath) name = pagure.lib.git.get_author(rev, abspath) author = search_user(pagure.SESSION, email=email) or name - authors.add(author) + authors.add(author.to_json(public=True)) if revs: revs.reverse()