Created
August 19, 2015 21:47
-
-
Save dcarral/2bdac43363984ddce18f to your computer and use it in GitHub Desktop.
Quick & dirty fix to https://github.com/F483/bikesurf.org/issues/59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/link/models.py b/apps/link/models.py | |
index f9b726c..a5b445c 100755 | |
--- a/apps/link/models.py | |
+++ b/apps/link/models.py | |
@@ -1,6 +1,6 @@ | |
# -*- coding: utf-8 -*- | |
-# Copyright (c) 2012 Fabian Barkhau <[email protected]> | |
-# License: MIT (see LICENSE.TXT file) | |
+# Copyright (c) 2012 Fabian Barkhau <[email protected]> | |
+# License: MIT (see LICENSE.TXT file) | |
from django.db.models import Model | |
@@ -18,7 +18,7 @@ SITE_CHOICES = [ | |
("TWITTER", _("TWITTER")), | |
] | |
-SITE_IMAGES = { | |
+SITE_IMAGES = { | |
"FACEBOOK" : "/static/link/facebook.png", | |
"TWITTER" : "/static/link/twitter.png", | |
"COUCHSURFING" : "/static/link/couchsurfing.png", | |
@@ -51,12 +51,12 @@ VALID_SITE_URLS = { # TODO better match for each site profile patterns | |
"^https://www\.bewelcome\.org/", | |
], | |
"COUCHSURFING" : [ | |
- "^couchsurfing\.org/", | |
- "^www\.couchsurfing\.org/", | |
- "^http://couchsurfing\.org/", | |
- "^http://www\.couchsurfing\.org/", | |
- "^https://couchsurfing\.org/", | |
- "^https://www\.couchsurfing\.org/", | |
+ "^couchsurfing\.com/", | |
+ "^www\.couchsurfing\.com/", | |
+ "^http://couchsurfing\.com/", | |
+ "^http://www\.couchsurfing\.com/", | |
+ "^https://couchsurfing\.com/", | |
+ "^https://www\.couchsurfing\.com/", | |
], | |
} | |
@@ -86,4 +86,3 @@ class Link(Model): | |
def get_image(self): | |
return SITE_IMAGES[self.site] | |
- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment