mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Add type property to DefaultSR for stylesheet X-Private-Subreddit check.
This commit is contained in:
@@ -847,6 +847,10 @@ class DefaultSR(_DefaultSR):
|
||||
def _fullname(self):
|
||||
return "t5_6"
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return self._base.type if self._base else "public"
|
||||
|
||||
@property
|
||||
def header(self):
|
||||
return (self._base and self._base.header) or _DefaultSR.header
|
||||
|
||||
Reference in New Issue
Block a user