FiX: Update date url for thread oneboxes (#24172)

This commit is contained in:
Jan Cernik 2023-10-31 08:04:40 -03:00 committed by GitHub
parent 4ef3066af5
commit 6269134eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,12 @@
</div>
<div class="chat-transcript-username">{{username}}</div>
<div class="chat-transcript-datetime">
<a href="/chat/c/-/{{channel_id}}" title="{{created_at}}">{{created_at}}</a>
{{#thread_id}}
<a href="/chat/c/-/{{channel_id}}/t/{{thread_id}}/{{message_id}}" title="{{created_at}}">{{created_at}}</a>
{{/thread_id}}
{{^thread_id}}
<a href="/chat/c/-/{{channel_id}}/{{message_id}}" title="{{created_at}}">{{created_at}}</a>
{{/thread_id}}
</div>
<a class="chat-transcript-channel" href="/chat/c/-/{{channel_id}}">
{{#is_category}}

View File

@ -93,7 +93,7 @@ describe Chat::OneboxHandler do
</div>
<div class="chat-transcript-username">#{user.username}</div>
<div class="chat-transcript-datetime">
<a href="/chat/c/-/#{public_channel.id}" title="#{public_message.created_at}">#{public_message.created_at}</a>
<a href="/chat/c/-/#{public_channel.id}/#{public_message.id}" title="#{public_message.created_at}">#{public_message.created_at}</a>
</div>
<a class="chat-transcript-channel" href="/chat/c/-/#{public_channel.id}">
<span class="category-chat-badge" style="color: ##{public_channel.chatable.color}">