mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:12:46 +08:00
FIX: Incorrect subfolder authors urls when embedding
This commit is contained in:
parent
737c606710
commit
cbd2fbf9a8
|
@ -16,11 +16,11 @@
|
|||
<%- end %>
|
||||
|
||||
<div class='author'>
|
||||
<a href='/users/<%= post.username %>' target="_blank"><img src='<%= post.user.small_avatar_url %>' alt=''></a>
|
||||
<a href='<%= Discourse.base_url %>/users/<%= post.username %>' target="_blank"><img src='<%= post.user.small_avatar_url %>' alt=''></a>
|
||||
</div>
|
||||
<div class='cooked'>
|
||||
<h3 class='username'>
|
||||
<a href='/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
||||
<a href='<%= Discourse.base_url %>/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
||||
<%- if post.user.title.present? %>
|
||||
<span class='title'><%= post.user.title %></span>
|
||||
<%- end %>
|
||||
|
|
Loading…
Reference in New Issue
Block a user