forked from rDrama/rDrama
fix marseyworld
parent
03b6a085c9
commit
bcc2d04435
|
@ -26,7 +26,7 @@ class Hole(Base):
|
||||||
public_use = Column(Boolean, default=False)
|
public_use = Column(Boolean, default=False)
|
||||||
created_utc = Column(Integer)
|
created_utc = Column(Integer)
|
||||||
|
|
||||||
if SITE == 'watchpeopledie.tv':
|
if SITE_NAME == 'WPD' and not IS_LOCALHOST:
|
||||||
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 == 'watchpeopledie.tv':
|
if SITE_NAME == 'WPD' and not IS_LOCALHOST:
|
||||||
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")
|
||||||
|
@ -153,6 +153,11 @@ class Post(Base):
|
||||||
def permalink(self):
|
def permalink(self):
|
||||||
return SITE_FULL + self.shortlink
|
return SITE_FULL + self.shortlink
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def text_permalink(self):
|
||||||
|
return f"[{self.title}]({self.shortlink})"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def domain(self):
|
def domain(self):
|
||||||
|
|
|
@ -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 == 'watchpeopledie.tv':
|
if SITE_NAME == 'WPD' and not IS_LOCALHOST:
|
||||||
nitter = False
|
nitter = False
|
||||||
imgsed = False
|
imgsed = False
|
||||||
controversial = False
|
controversial = False
|
||||||
|
|
Loading…
Reference in New Issue