提案 #1313 » photo_support_reddit.patch
core/plugin/photo_support/photo_support.rb | ||
---|---|---|
278 | 278 |
end |
279 | 279 |
open(image_url) |
280 | 280 |
end |
281 | ||
282 |
|
|
283 |
defimageopener('reddit', %r|^https?://www\.reddit\.com/r/(?:[^/]*)/comments/(?:[^/]*)/(?:[^/]*)|) do |display_url| |
|
284 |
img = Plugin::PhotoSupport.インスタ映え(display_url) |
|
285 |
open(img) if img |
|
286 |
end |
|
281 | 287 |
end |