diff --git a/core/plugin/photo_support/photo_support.rb b/core/plugin/photo_support/photo_support.rb index d4349b1e..120210c6 100644 --- a/core/plugin/photo_support/photo_support.rb +++ b/core/plugin/photo_support/photo_support.rb @@ -278,4 +278,10 @@ Plugin.create :photo_support do end open(image_url) end + + #reddit + defimageopener('reddit', %r|^https?://www\.reddit\.com/r/(?:[^/]*)/comments/(?:[^/]*)/(?:[^/]*)|) do |display_url| + img = Plugin::PhotoSupport.インスタ映え(display_url) + open(img) if img + end end