fix #53
This commit is contained in:
@@ -69,8 +69,13 @@ def page(mid):
|
||||
all_icons = db.execute("SELECT icon_location FROM icons WHERE member_id=(?)",(mid,)).fetchall()
|
||||
blinkies = db.execute("SELECT blinkie_location FROM blinkies WHERE member_id=(?)",(mid,)).fetchall()
|
||||
stamps = db.execute("SELECT stamp_location FROM stamps WHERE member_id=(?)",(mid,)).fetchall()
|
||||
blog_public = db.execute("SELECT * FROM blog WHERE member_id=(?) AND public=(?)",(mid,1)).fetchall()
|
||||
|
||||
return render_template('page.html', member=member, blog=blog, icon=icon, all_icons=all_icons, blinkies=blinkies, stamps=stamps)
|
||||
blog_public_show = False
|
||||
if len(blog_public) > 0:
|
||||
blog_public_show = True
|
||||
|
||||
return render_template('page.html', member=member, blog=blog, icon=icon, all_icons=all_icons, blinkies=blinkies, stamps=stamps, blog_public_show=blog_public_show)
|
||||
|
||||
@bp.route("/groups")
|
||||
def groups():
|
||||
|
||||
@@ -28,7 +28,10 @@
|
||||
<br class="clear" />
|
||||
|
||||
{% if blog|length > 0 %}
|
||||
<div class="heading big">{{member[3]}}'s blog</div>
|
||||
{% if not g.user and not blog_public_show %}
|
||||
{% else %}
|
||||
<div class="heading big">{{member[3]}}'s blog</div>
|
||||
{% endif %}
|
||||
<div id="blog">
|
||||
{% for post in blog %}
|
||||
{% if not g.user and post[5]==0 %}
|
||||
|
||||
Reference in New Issue
Block a user