mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Print a warning if someone tries to edit strange usertext.
This commit is contained in:
@@ -904,6 +904,9 @@ class ApiController(RedditController):
|
||||
if not getattr(item, "is_self", False):
|
||||
return abort(403, "forbidden")
|
||||
item.selftext = text
|
||||
else:
|
||||
g.log.warning("%s tried to edit usertext on %r", c.user, item)
|
||||
return
|
||||
|
||||
if item._deleted:
|
||||
return abort(403, "forbidden")
|
||||
|
||||
Reference in New Issue
Block a user