This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Temporarily use "[deleted]" in JSON for deleted usernames.

This is to work around Alien Blue crashing when it encounters a `null`
in the author property. We'll revert this after a grace period for
Alien Blue and any other affected apps to be updated.
  • Loading branch information...
chromakode committed Dec 4, 2012
1 parent 4e620f9 commit d566d91d84327a9233da9c0c9c534c3547dc2e5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 r2/r2/lib/jsontemplates.py
@@ -157,7 +157,7 @@ def thing_attr(self, thing, attr):
"""
if attr == "author":
if thing.author._deleted:
- return None
+ return "[deleted]"
return thing.author.name
if attr == "author_flair_text":
if thing.author._deleted:

0 comments on commit d566d91

Please sign in to comment.