Browse Source

Bugfix for online users

Previously mapped improperly with a dict.
Michael Hoyt 10 years ago
parent
commit
cc180291cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flaskbb/templates/forum/online_users.html

+ 2 - 2
flaskbb/templates/forum/online_users.html

@@ -10,9 +10,9 @@
 <legend>Online Users</legend>
 {% for user in online_users %}
     {% if config["REDIS_ENABLED"] %}
-    <a href="{{ url_for('user.profile', username=user) }}">{{ user }}<a>{% if not loop.last %}, {% endif %}
+    <a href="{{ url_for('user.profile', username=user.username) }}">{{ user }}<a>{% if not loop.last %}, {% endif %}
     {% else %}
-    <a href="{{ url_for('user.profile', username=user) }}">{{ user.username }}<a>{% if not loop.last %}, {% endif %}
+    <a href="{{ url_for('user.profile', username=user.username) }}">{{ user.username }}<a>{% if not loop.last %}, {% endif %}
     {% endif %}
 {% endfor %}