@@ -91,6 +91,9 @@ def get_node(node):
9191 def get_profile (self , request ):
9292 def parse_profile (profile ):
9393 if profile is not None :
94+ mods = []
95+ for mod in profile .moderator_list :
96+ mods .apend (mod .encode ("hex" ))
9497 profile_json = {
9598 "profile" : {
9699 "name" : profile .name ,
@@ -99,7 +102,7 @@ def parse_profile(profile):
99102 "nsfw" : profile .nsfw ,
100103 "vendor" : profile .vendor ,
101104 "moderator" : profile .moderator ,
102- "moderator_list" : profile . moderator_list ,
105+ "moderator_list" : mods ,
103106 "handle" : profile .handle ,
104107 "about" : profile .about ,
105108 "website" : profile .website ,
@@ -323,7 +326,7 @@ def update_profile(self, request):
323326 u .moderator = str_to_bool (request .args ["moderator" ][0 ])
324327 if "moderator_list" in request .args :
325328 for moderator in request .args ["moderator_list" ]:
326- u .moderator_list .append (moderator )
329+ u .moderator_list .append (unhexlify ( moderator ) )
327330 if "website" in request .args :
328331 u .website = request .args ["website" ][0 ]
329332 if "email" in request .args :
0 commit comments