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