forked from rDrama/rDrama
1
0
Fork 0

WPD: temporarily rewrite /videos/ post URLs.

master
Snakes 2022-10-07 01:43:04 -04:00
parent 1e585c07fa
commit e3bed60169
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 4 additions and 0 deletions

View File

@ -311,6 +311,10 @@ class Submission(Base):
if "?" in url: url += "&context=9"
else: url += "?context=8"
if v and v.controversial: url += "&sort=controversial"
elif url.startswith("https://watchpeopledie.co/videos/"):
# Semi-temporary fix for self-hosted unproxied video serving
url = url.replace("https://watchpeopledie.co/videos/",
"https://videos.watchpeopledie.co/", 1)
return url