mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing usernames and missing avatars in new follower emails.
This commit is contained in:
parent
9e3771c481
commit
bc229afb14
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ def index(request):
|
|||
try:
|
||||
if '.' in username:
|
||||
username = username.split('.')[0]
|
||||
user = User.objects.get(username=username)
|
||||
user = User.objects.get(username__icontains=username)
|
||||
except User.DoesNotExist:
|
||||
return HttpResponseRedirect('http://%s%s' % (
|
||||
Site.objects.get_current().domain.replace('www', 'dev'),
|
||||
|
|
|
@ -285,7 +285,7 @@ class MSocialProfile(mongo.Document):
|
|||
if self.photo_url.startswith('//'):
|
||||
self.photo_url = 'http:' + self.photo_url
|
||||
return self.photo_url
|
||||
domain = Site.objects.get_current().domain
|
||||
domain = Site.objects.get_current().domain.replace('www', 'dev')
|
||||
return 'http://' + domain + settings.MEDIA_URL + 'img/reader/default_profile_photo.png'
|
||||
|
||||
def to_json(self, compact=False, include_follows=False, common_follows_with_user=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue