forked from MarseyWorld/MarseyWorld
fix WPD localhost
parent
74e6f9ff40
commit
ff4d09b2cc
|
@ -25,7 +25,8 @@ class Hole(Base):
|
|||
stealth = Column(Boolean, default=False)
|
||||
public_use = Column(Boolean, default=False)
|
||||
created_utc = Column(Integer)
|
||||
if SITE_NAME == 'WPD':
|
||||
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
snappy_quotes = None
|
||||
else:
|
||||
snappy_quotes = deferred(Column(String))
|
||||
|
|
|
@ -74,7 +74,7 @@ class Post(Base):
|
|||
else:
|
||||
nsfw = False
|
||||
|
||||
if SITE_NAME == 'WPD':
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
cw = Column(Boolean, default=False)
|
||||
|
||||
author = relationship("User", primaryjoin="Post.author_id==User.id")
|
||||
|
|
|
@ -150,7 +150,7 @@ class User(Base):
|
|||
group_creation_notifs = Column(Boolean, default=False)
|
||||
effortpost_notifs = Column(Boolean, default=False)
|
||||
|
||||
if SITE_NAME == 'WPD':
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
nitter = False
|
||||
imgsed = False
|
||||
controversial = False
|
||||
|
|
|
@ -590,7 +590,7 @@ def submit_post(v, hole=None):
|
|||
ghost=flag_ghost,
|
||||
)
|
||||
|
||||
if SITE_NAME == 'WPD':
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
p.cw = request.values.get("cw", False, bool)
|
||||
|
||||
if not p.draft:
|
||||
|
|
Loading…
Reference in New Issue