dev.mikutter.hachune.net/issue のやつ、自分でこれかなと思ってコード書き換えてみたら出るようになった。
- defimageopener(_('Mastodon添付画像'), %r<\Ahttps?://[^/]+/system/media_attachments/files/[0-9]{3}/[0-9]{3}/[0-9]{3}/\w+/\w+\.\w+(?:\?\d+)?\Z>) do |url|
+ defimageopener(_('Mastodon添付画像'), %r<\Ahttps?://[^/]+/system/(cache/)?media_attachments/files/[0-9]{3}/[0-9]{3}/[0-9]{3}/\w+/\w+\.\w+(?:\?\d+)?\Z>) do |url|
ディレクトリ構造が違うという話なんだけど、うちのサーバーだけcache/が入るのが変ならうちのサーバーを治したい気持ちがある

Follow

@akkiesoft あといつのまにか画像のIDも snowflake になったので (e.g. cloud-ng.rinsuki.net/mstdn-rin )、files/[0-9]{3}/[0-9]{3}/[0-9]{3}/\w+ の部分は files/([0-9]{3}/)+\w+ とかのほうがいいかもしれない

· · Web · 1 · 0 · 1

@rinsuki :ok_yu_ko: ひとまずチケットに今のリプライ引用させてください。今日はもう寝る

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!