mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Pass fullname on deleted things if we're admin.
This commit is contained in:
committed by
Neil Williams
parent
1ecb6c6a61
commit
dfdc5600c4
@@ -3872,9 +3872,10 @@ class UserText(CachedTemplate):
|
||||
text = ''
|
||||
|
||||
fullname = ''
|
||||
# Only pass fullname on things that are not deleted
|
||||
if not getattr(item, 'deleted', False) and hasattr(item, '_fullname'):
|
||||
fullname = item._fullname
|
||||
# Do not pass fullname on deleted things, unless we're admin
|
||||
if hasattr(item, '_fullname'):
|
||||
if not getattr(item, 'deleted', False) or c.user_is_admin:
|
||||
fullname = item._fullname
|
||||
|
||||
CachedTemplate.__init__(self,
|
||||
fullname = fullname,
|
||||
|
||||
Reference in New Issue
Block a user