提案 #1471 » 0001-Pixiv-mastodon.patch
plugin/photo_support/photo_support.rb | ||
---|---|---|
290 | 290 | |
291 | 291 |
# pixiv |
292 | 292 |
defimageopener('pixiv', %r<https?://(?:www\.)?pixiv\.net/member_illust\.php\?(?:.*)&?illust_id=\d+(?:&.*)?$>) do |display_url| |
293 |
img = Plugin::PhotoSupport.インスタ映え(display_url) |
|
293 |
img = Plugin::PhotoSupport.インスタ映え(display_url) << "&mode=sns-automator"
|
|
294 | 294 |
URI.open(img) if img |
295 | 295 |
end |
296 | 296 |
# pixiv new |
297 | 297 |
defimageopener('pixiv', %r<https?://(?:www\.)?pixiv\.net/artworks/\d+$>) do |display_url| |
298 |
img = Plugin::PhotoSupport.インスタ映え(display_url) |
|
298 |
img = Plugin::PhotoSupport.インスタ映え(display_url) << "&mode=sns-automator"
|
|
299 | 299 |
URI.open(img) if img |
300 | 300 |
end |
301 | 301 |