Skip to content

Commit 40c9375

Browse files
committed
Bugfix: url encode upstream message ids
1 parent 7115498 commit 40c9375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/topics/_message.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
span.attachment-count #{message.attachments.size} attachment(s)
3838
- if message.message_id.present?
3939
.message-archive-link
40-
= link_to "https://postgr.es/m/#{message.message_id}", target: "_blank", rel: "noopener", data: { turbo: false }, title: "View on postgr.es", "aria-label": "View on postgr.es" do
40+
= link_to "https://postgr.es/m/#{ERB::Util.url_encode(message.message_id)}", target: "_blank", rel: "noopener", data: { turbo: false }, title: "View on postgr.es", "aria-label": "View on postgr.es" do
4141
i.fa-solid.fa-building-columns
4242

4343
.message-content class=read_classes.join(" ") data=read_data

0 commit comments

Comments
 (0)