]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/macros/reviews.html
Fix misattribution of review due to missing reply ordering
[cheatdb.git] / app / templates / macros / reviews.html
index 42ae614f089799c4f619828c902c7ad05398a341..6ba176cc0af17752954341d6960f74806ee1f4b2 100644 (file)
                                <div class="col pr-0">
                                        <div class="card">
                                                <div class="card-header">
-                                                       <a class="author {{ reply.author.rank.name }}"
-                                                                       href="{{ url_for('users.profile', username=reply.author.username) }}">
-                                                               {{ reply.author.display_name }}
+                                                       <a class="author {{ review.author.rank.name }}"
+                                                                       href="{{ url_for('users.profile', username=review.author.username) }}">
+                                                               {{ review.author.display_name }}
                                                        </a>
 
                                                        <a name="reply-{{ reply.id }}" class="text-muted float-right"
                                                                        href="{{ url_for('threads.view', id=review.thread.id) }}#reply-{{ reply.id }}">
-                                                               {{ reply.created_at | datetime }}
+                                                               {{ review.created_at | datetime }}
                                                        </a>
                                                </div>