diff --git a/plugin/mastodon/mastodon.rb b/plugin/mastodon/mastodon.rb index 85ffce20..dd1db5fd 100644 --- a/plugin/mastodon/mastodon.rb +++ b/plugin/mastodon/mastodon.rb @@ -17,7 +17,7 @@ require_relative 'extractcondition' require_relative 'score' Plugin.create(:mastodon) do - 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}/)+\w+/\w+\.\w+(?:\?\d+)?\Z>) do |url| URI.open(url) end