ssb: Fix some message link encoding.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m41s

This commit is contained in:
Cory McWilliams 2024-11-26 08:42:51 -05:00
parent 5bc082b75e
commit e4e050e8e7
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&VCGjLxXNz7S8jDYM0HK+GfHsLujtIRiwYQcIGo5Y9+A=.sha256"
"previous": "&ksxKqT3Bkp0Z2zV2dQU4ttVZ1k16zdWoJVv6R7m5yAQ=.sha256"
}

View File

@ -408,7 +408,7 @@ ${JSON.stringify(mention, null, 2)}</pre
>
<tf-user id=${self.message.author} .users=${self.users}></tf-user>
<span style="padding-right: 8px"
><a tfarget="_top" href=${'#' + self.message.id}>%</a> ${new Date(
><a tfarget="_top" href=${'#' + encodeURIComponent(self.message.id)}>%</a> ${new Date(
self.message.timestamp
).toLocaleString()}</span
>
@ -449,7 +449,7 @@ ${JSON.stringify(mention, null, 2)}</pre
class="w3-card-4 w3-theme-d4 w3-border-theme"
style="margin-top: 8px; padding: 16px; overflow-wrap: anywhere"
>
<a target="_top" href=${'#' + this.message.id}>${this.message.id}</a>
<a target="_top" href=${'#' + encodeURIComponent(this.message.id)}>${this.message.id}</a>
(placeholder)
<div>${this.render_votes()}</div>
${(this.message.child_messages || []).map(
@ -600,7 +600,7 @@ ${JSON.stringify(content, null, 2)}</pre
${is_encrypted}
<span style="flex: 1"></span>
<span style="padding-right: 8px"
><a target="_top" href=${'#' + self.message.id}>%</a>
><a target="_top" href=${'#' + encodeURIComponent(self.message.id)}>%</a>
${new Date(this.message.timestamp).toLocaleString()}</span
>
<span>${raw_button}</span>
@ -643,7 +643,7 @@ ${JSON.stringify(content, null, 2)}</pre
${is_encrypted}
<span style="flex: 1"></span>
<span style="padding-right: 8px"
><a target="_top" href=${'#' + self.message.id}>%</a>
><a target="_top" href=${'#' + encodeURIComponent(self.message.id)}>%</a>
${new Date(this.message.timestamp).toLocaleString()}</span
>
<span>${raw_button}</span>
@ -733,7 +733,7 @@ ${JSON.stringify(content, null, 2)}</pre
<tf-user id=${this.message.author} .users=${this.users}></tf-user>
<span style="flex: 1"></span>
<span style="padding-right: 8px"
><a target="_top" href=${'#' + self.message.id}>%</a>
><a target="_top" href=${'#' + encodeURIComponent(self.message.id)}>%</a>
${new Date(this.message.timestamp).toLocaleString()}</span
>
<span>${raw_button}</span>