mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
refactor(federation): 🔥 Remove confusing User federation methods
This commit is contained in:
parent
9ff9b90f6b
commit
54b2dfb78d
12 changed files with 72 additions and 94 deletions
|
|
@ -296,7 +296,7 @@ export const parseTextMentions = async (
|
|||
export const replaceTextMentions = (text: string, mentions: User[]): string => {
|
||||
return mentions.reduce((finalText, mention) => {
|
||||
const { username, instance } = mention.data;
|
||||
const uri = mention.getUri();
|
||||
const { uri } = mention;
|
||||
const baseHost = config.http.base_url.host;
|
||||
const linkTemplate = (displayText: string): string =>
|
||||
`<a class="u-url mention" rel="nofollow noopener noreferrer" target="_blank" href="${uri}">${displayText}</a>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue