Bladeren bron

af_redditimgur: try to handle mobile imgur albums

Andrew Dolgov 8 jaren geleden
bovenliggende
commit
8b2a52c635
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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);