Browse Source

af_redditimgur: try to handle mobile imgur albums

Andrew Dolgov 3 years ago
parent
commit
8b2a52c635
1 changed files with 1 additions and 1 deletions
  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);