]> git.parisson.com Git - telemeta.git/commitdiff
fix image url ext
authoryomguy <yomguy@parisson.com>
Mon, 20 Feb 2012 16:16:27 +0000 (17:16 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 20 Feb 2012 16:16:27 +0000 (17:16 +0100)
telemeta/models/media.py

index 59257e49846a454997c7527adf43570ecd64464e..2b5c9426bc93bbb8325bcddc25a559eb261542d2 100644 (file)
@@ -132,7 +132,7 @@ class MediaRelated(MediaResource):
         if self.url:
             url_types = ['.png', '.jpg', '.gif', '.jpeg']
             for type in url_types:
-                if type in self.url:
+                if type in self.url or type.upper() in self.url:
                     is_url_image = True
         return 'image' in self.mime_type or is_url_image