default user settings to sort all posts && comments by new
This commit is contained in:
parent
0a37be8020
commit
19d54d8521
1 changed files with 3 additions and 3 deletions
|
@ -113,8 +113,8 @@ class User(Base):
|
||||||
mfa_secret = deferred(Column(String))
|
mfa_secret = deferred(Column(String))
|
||||||
is_private = Column(Boolean, default=False)
|
is_private = Column(Boolean, default=False)
|
||||||
stored_subscriber_count = Column(Integer, default=0)
|
stored_subscriber_count = Column(Integer, default=0)
|
||||||
defaultsortingcomments = Column(String, default="top")
|
defaultsortingcomments = Column(String, default="new")
|
||||||
defaultsorting = Column(String, default="hot")
|
defaultsorting = Column(String, default="new")
|
||||||
defaulttime = Column(String, default=defaulttimefilter)
|
defaulttime = Column(String, default=defaulttimefilter)
|
||||||
is_nofollow = Column(Boolean, default=False)
|
is_nofollow = Column(Boolean, default=False)
|
||||||
custom_filter_list = Column(String)
|
custom_filter_list = Column(String)
|
||||||
|
@ -636,4 +636,4 @@ class User(Base):
|
||||||
def filter_words(self):
|
def filter_words(self):
|
||||||
l = [i.strip() for i in self.custom_filter_list.split('\n')] if self.custom_filter_list else []
|
l = [i.strip() for i in self.custom_filter_list.split('\n')] if self.custom_filter_list else []
|
||||||
l = [i for i in l if i]
|
l = [i for i in l if i]
|
||||||
return l
|
return l
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue