Rename Conf.url() to Conf.local(), replace it with a URL of localDomain

This commit is contained in:
Alex Gleason
2023-07-09 18:26:33 -05:00
parent 5ec40f285d
commit be6aa89c39
7 changed files with 16 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ const linkifyOpts: linkify.Opts = {
render: {
hashtag: ({ content }) => {
const tag = content.replace(/^#/, '');
const href = Conf.url(`/tags/${tag}`);
const href = Conf.local(`/tags/${tag}`);
return `<a class=\"mention hashtag\" href=\"${href}\" rel=\"tag\"><span>#</span>${tag}</a>`;
},
url: ({ content }) => {
@@ -17,7 +17,7 @@ const linkifyOpts: linkify.Opts = {
const pubkey = getDecodedPubkey(decoded);
if (pubkey) {
const name = pubkey.substring(0, 8);
const href = Conf.url(`/users/${pubkey}`);
const href = Conf.local(`/users/${pubkey}`);
return `<span class="h-card"><a class="u-url mention" href="${href}" rel="ugc">@<span>${name}</span></a></span>`;
} else {
return '';