ssb: Make #hashtags direct to channels.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m25s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m25s
This commit is contained in:
@ -231,7 +231,7 @@ class TfMessageElement extends LitElement {
|
||||
>${mention.name}</a
|
||||
>`;
|
||||
} else if (mention.link?.startsWith('#')) {
|
||||
return html` <a href=${'#q=' + encodeURIComponent(mention.link)}
|
||||
return html` <a href=${'#' + encodeURIComponent('#' + mention.link)}
|
||||
>${mention.link}</a
|
||||
>`;
|
||||
} else if (
|
||||
@ -640,7 +640,7 @@ ${JSON.stringify(content, null, 2)}</pre
|
||||
<button class="w3-button w3-theme-d1" @click=${this.react}>
|
||||
React
|
||||
</button>
|
||||
${(!content.root && this.message.rowid <= this.channel_unread) ?
|
||||
${(!content.root && this.message.rowid < this.channel_unread) ?
|
||||
html`
|
||||
<button class="w3-button w3-theme-d1" @click=${this.mark_unread}>Mark Unread</button>
|
||||
` :
|
||||
@ -814,7 +814,7 @@ ${JSON.stringify(content, null, 2)}</pre
|
||||
return small_frame(html`
|
||||
<div>
|
||||
${content.subscribed ? 'subscribed to' : 'unsubscribed from'}
|
||||
<a href=${'#q=' + encodeURIComponent('#' + content.channel)}
|
||||
<a href=${'#' + encodeURIComponent('#' + content.channel)}
|
||||
>#${content.channel}</a
|
||||
>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user