🐛 Bug Report: preview.redd.it links lead to /r/funny post instead of image
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Rust
- スター
- 3.9k
- フォーク
- 293
- 平均マージ
- 14日 8時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
redlib-org/redlib のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
redlib-org/redlib#604 · リアクション 4 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
redlib-org/redlib#571 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
redlib-org/redlib#557 ·
メンテナーはふだん 3 日以内に返信
-
🐛 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?対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
redlib-org/redlib#602 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 4/5 1〜2日 初心者へのやさしさ 52/100
redlib-org/redlib#600 · コメント 7 件 · リアクション 7 件 ·
メンテナーはふだん 3 日以内に返信
redlib-org/redlib の issue をすべて見る
似ている issue
-
desktop documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
vfarcic/dot-agent-deck#2008 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
pbakaus/impeccable#1210 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ux-opportunities
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area: ci priority: P4 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
shep-pm/shep#1249 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`PartialEq` for `AssignedBigUint` treats different values as equal対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンstatus:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
midnightntwrk/midnight-zk#600 ·
メンテナーはふだん 2 日以内に返信