fix WPD localhost

master
Aevann 2024-02-19 00:13:50 +02:00
parent 74e6f9ff40
commit ff4d09b2cc
4 changed files with 5 additions and 4 deletions

View File

@ -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))

View File

@ -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")

View File

@ -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

View File

@ -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: