fixed wrong id being used in last post link

This commit is contained in:
flash 2017-03-24 17:50:44 +01:00
parent 948e8fcee4
commit 7b2ef8e603

View file

@ -34,7 +34,7 @@
<div class="forum__preview-avatar avatar avatar--border" style="background-image: url('{{ route('user.avatar', forum.lastPostUserId) }}')"></div>
<div class="forum__preview-info">
<div class="forum__preview-info-row">
<a class="forum__post-link" href="{{ route('forums.post', forum.lastPostUserId) }}">
<a class="forum__post-link" href="{{ route('forums.post', forum.lastPostId) }}">
{{ forum.lastPostTitle|slice(0, 30)|trim }}{% if forum.lastPostTitle|length > 30 %}...{% endif %}
</a>
</div>