🐛 Bug Report: preview.redd.it links lead to /r/funny post instead of image
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 3.9k
- Fork
- 293
- Merge trung bình
- 14 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redlib-org/redlib
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
redlib-org/redlib#604 · 4 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
redlib-org/redlib#571 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
redlib-org/redlib#557 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
🐛 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?Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
redlib-org/redlib#602 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
redlib-org/redlib#600 · 7 bình luận · 7 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của redlib-org/redlib
Issue tương tự
-
build.yml: macOS arm64 DMG fails, cargo missing on the macos-26 runner imageCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getopenscreen/openscreen#1423 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: remove the "not stable yet" warning from DataReplacement commitsCó thể đã có người làm @lance-gatefixer đã nhận hôm nay. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
lance-format/lance#10433 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
vorbis: Inverse coupling runs in wrong orderCó thể đã có người làm @computerfan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100