dfsdsf
This commit is contained in:
parent
7cd2dc62f9
commit
6e5fdb50f7
9 changed files with 18 additions and 25 deletions
|
@ -304,11 +304,7 @@ class Submission(Base):
|
|||
|
||||
@lazy
|
||||
def realurl(self, v):
|
||||
if v and v.agendaposter and random.randint(1, 10) < 4:
|
||||
if site == 'rdrama.net':
|
||||
return random.choice(['https://secure.actblue.com/donate/ms_blm_homepage_2019','https://rdrama.net/post/19711/a-short-guide-on-how-to'])
|
||||
return 'https://secure.actblue.com/donate/ms_blm_homepage_2019'
|
||||
elif v and self.url and self.url.startswith("https://old.reddit.com/"):
|
||||
if v and self.url and self.url.startswith("https://old.reddit.com/"):
|
||||
url = self.url
|
||||
if v.teddit: url = self.url.replace("old.reddit.com", "teddit.net")
|
||||
elif not v.oldreddit: url = self.url.replace("old.reddit.com", "reddit.com")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue