mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user