Fix media previews

This commit is contained in:
spikecodes 2021-02-19 21:49:02 -08:00
parent b3341b49c0
commit 2091f26bda
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ async fn main() -> tide::Result<()> {
.get(|req| handler(req, "https://emoji.redditmedia.com/{}/{}", vec!["id", "name"]));
app
.at("/preview/:loc/:id/:query/")
.get(|req| handler(req, "https://{}preview.redd.it/{}?{}", vec!["loc", "id", "query"]));
.get(|req| handler(req, "https://{}view.redd.it/{}?{}", vec!["loc", "id", "query"]));
app
.at("/style/*path/") /* */
.get(|req| handler(req, "https://styles.redditmedia.com/{}", vec!["path"]));