Peter Justin 6 лет назад
Родитель
Сommit
b612f1f6ea
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      flaskbb/templates/forum/search_result.html

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

@@ -32,7 +32,7 @@
                     {% endif %}
                     <div class="author-title"><h5>{{ post.user.primary_group.name }}</h5></div>
 
-                    {{ run_hook("flaskbb_tpl_post_author_info_before", user=user, post=post) }}
+                    {{ run_hook("flaskbb_tpl_post_author_info_before", user=post.user, post=post) }}
 
                     {% if post.user.avatar %}
                         <div class="author-avatar"><img src="{{ post.user.avatar }}" alt="avatar"></div>
@@ -41,7 +41,7 @@
                     <div class="author-registered">{% trans %}Joined{% endtrans %}: {{ post.user.date_joined|format_date }}</div>
                     <div class="author-posts">{% trans %}Posts{% endtrans %}: {{ post.user.post_count }}</div>
 
-                    {{ run_hook("flaskbb_tpl_post_author_info_after", user=user, post=post) }}
+                    {{ run_hook("flaskbb_tpl_post_author_info_after", user=post.user, post=post) }}
 
                     {% else %}
                     <!-- user deleted or guest -->