From 5a8f96cb56e80b9132aeb2e7503c2057c17bc49f Mon Sep 17 00:00:00 2001 From: moguno Date: Tue, 22 Sep 2015 01:31:31 +0900 Subject: [PATCH] =?UTF-8?q?INSTAGRAM=E4=BB=95=E6=A7=98=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=81=AB=E5=AF=BE=E3=81=99=E3=82=8B=E8=BF=BD=E5=BE=93=20https?= =?UTF-8?q?=E3=81=AA=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E5=B1=95=E9=96=8B?= =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AB=E3=81=97=E3=81=9F=E3=80=82=20?= =?UTF-8?q?=E3=82=B5=E3=83=A0=E3=83=8D=E3=82=A4=E3=83=AB=E3=81=AEURL?= =?UTF-8?q?=E3=82=92https=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/photo_support/photo_support.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/plugin/photo_support/photo_support.rb b/core/plugin/photo_support/photo_support.rb index 8868c9b..ce93b14 100644 --- a/core/plugin/photo_support/photo_support.rb +++ b/core/plugin/photo_support/photo_support.rb @@ -3,7 +3,7 @@ require 'nokogiri' require 'httpclient' module Plugin::PhotoSupport - INSTAGRAM_PATTERN = %r{^http://(?:instagr\.am|instagram\.com)/p/([a-zA-Z0-9_\-]+)} + INSTAGRAM_PATTERN = %r{^https?://(?:instagr\.am|instagram\.com)/p/([a-zA-Z0-9_\-]+)} end Plugin.create :photo_support do @@ -145,7 +145,7 @@ Plugin.create :photo_support do defimageopener('instagram', Plugin::PhotoSupport::INSTAGRAM_PATTERN) do |display_url| m = display_url.match(Plugin::PhotoSupport::INSTAGRAM_PATTERN) shortcode = m[1] - open("http://instagram.com/p/#{shortcode}/media/?size=l") + open("https://instagram.com/p/#{shortcode}/media/?size=l") end # d250g2 -- 2.4.3