Преглед изворни кода

af_redditimgur: try to handle mobile imgur albums

Andrew Dolgov пре 8 година
родитељ
комит
8b2a52c635
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/af_redditimgur/init.php

+ 1 - 1
plugins/af_redditimgur/init.php

@@ -195,7 +195,7 @@ class Af_RedditImgur extends Plugin {
 				// linked albums & pages
 
 				if (preg_match("/^https?:\/\/(m\.)?imgur.com\/([^\.\/]+$)/", $entry->getAttribute("href"), $matches) ||
-					preg_match("/^https?:\/\/imgur.com\/(a|album|gallery)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
+					preg_match("/^https?:\/\/(m\.)?imgur.com\/(a|album|gallery)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
 
 					_debug("Handling as an imgur page/album/gallery", $debug);