ModAction: if target is an Account, set target_author to target.

This will include the author name in json views of add/remove for
ban/contributor/mod/etc.
This commit is contained in:
Brian Simpson
2015-04-02 12:29:45 -04:00
parent 0ac2a06404
commit 84e609ee3b

View File

@@ -322,6 +322,9 @@ class ModAction(tdb_cassandra.UuidThing):
parent_link_name = item.target.link_id
item.parent_link = parent_links[parent_link_name]
if isinstance(item.target, Account):
item.target_author = item.target
if c.render_style == "html":
request_path = request.path