Changeset - a410c6c1461d
[Not reviewed]
0 1 0
Andrew Browning - 10 months ago 2018-07-08 16:06:19
ayleph@thisshitistemp.com
Fix server crash on blog about page [#5572]

Don't bother checking for user's blog if no user returned.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
mediagoblin/media_types/blog/views.py
Show inline comments
...
 
@@ -376,7 +376,9 @@ def blog_about_view(request):
 
    user = request.db.LocalUser.query.filter(
 
        LocalUser.username==url_user
 
    ).first()
 
    blog = get_blog_by_slug(request, blog_slug, author=user.id)
 

	
 
    if user:
 
        blog = get_blog_by_slug(request, blog_slug, author=user.id)
 

	
 
    if not user or not blog:
 
        return render_404(request)
0 comments (0 inline, 0 general)