Show author badges on assets and comments

Comments layout is still broken, marked as TODO(Pablo).
This commit is contained in:
2018-09-12 15:58:29 +02:00
parent e8fb77c39b
commit 2be41a7145
5 changed files with 25 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ def after_fetching_user(user):
return
# Remove all fields except public ones.
public_fields = {'full_name', 'username', 'email', 'extension_props_public'}
public_fields = {'full_name', 'username', 'email', 'extension_props_public', 'badges'}
for field in list(user.keys()):
if field not in public_fields:
del user[field]