🐛 Bug Report: preview.redd.it links lead to /r/funny post instead of image
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start by tracing how Redlib handles incoming Reddit media links and redirects, using the issue’s preview.redd.it URL as a reproduction case. Compare that path with the embedded preview handling mentioned for PRs #80 and #92. Done means clicking the linked image from old.reddit.com opens the image instead of the unrelated /r/funny post.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
preview.redd.it links that aren't embedded, but clickable, don't lead to the image, but rather the same old /r/funny reddit post.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Open this post in old.reddit.com:
https://old.reddit.com/r/wacom/comments/1tbsl5n/this_isnt_ideal/ - Click on the preview.redd.it link in the comment, which is this:
https://preview.redd.it/4yaj3tis7v0h1.jpeg?width=1936&format=pjpg&auto=webp&s=0ad2e458a311aa27d496f06758feefc8cd865edf - That redirects to a URL like:
https://www.reddit.com/media?solution=13a347276614d3af13a347276614d3af&js_challenge=1&token=bbbe4bf1c9a2b5160829c4be34da5861c65ccad4cdea9db78b59f14f3fe11e41&jsc_orig_r=&url=https%3A%2F%2Fpreview.redd.it%2F4yaj3tis7v0h1.jpeg%3Fwidth%3D1936%26format%3Dpjpg%26auto%3Dwebp%26s%3D0ad2e458a311aa27d496f06758feefc8cd865edf - Instead of opening the image, as it does with reddit, redlib opens this same post every time:
https://www.reddit.com/r/funny/comments/media/removed_by_moderator/ - Ideally, the link would redirect to the image.
Additional context / screenshot
I notice some work was done for PR #80 and #92 to deal with embedded previews. This may be similar, except the images aren't embedded, they're just links.
I initially didn't realize this is only an issue when opening links from old.reddit.com that open in redlib. Viewing the post in redlib itself, the previews are embedded properly. So this may be beyond the scope of redlib, honestly. But maybe others also use old.reddit.com for posting, and have run across this same issue, clicking on the preview links and having them redirected to redlib.
- I checked that the instance that this was reported on is running the latest git commit, or I can reproduce it locally on the latest git commit
- Lenguaje dominante
- Rust
- Estrellas
- 3.9k
- Forks
- 293
- Merge medio
- 14 d 8 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de redlib-org/redlib
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
redlib-org/redlib#604 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
redlib-org/redlib#571 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
redlib-org/redlib#557 ·
Los mantenedores suelen responder en 3 días
-
🐛 Bug Report: Failed to parse page JSON data: expected value at line 1 column 1 | /r/LivestreamFail/comments/1xd628q/hila_klein_says_ethan_klein_has_been_having_an/.json?Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
redlib-org/redlib#602 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 4/5 1-2 días Aptitud para principiantes 52/100
redlib-org/redlib#600 · 7 comentarios · 7 reacciones ·
Los mantenedores suelen responder en 3 días
Todos los issues de redlib-org/redlib
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
status:untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
midnightntwrk/midnight-zk#592 ·
Los mantenedores suelen responder en 3 días
-
QuartoHub: have the Document name before the filename in the browser tabPosiblemente ocupada @cscheid la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
quarto-dev/q2#930 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
muse P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
HerringtonDarkholme/hd-lang#923 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día