refactor: add method from mentions into core

turn remote url into local profile urls if they are found in remoteUrl:uid
This commit is contained in:
Barış Soner Uşaklı
2024-06-12 20:31:36 -04:00
parent a67e1b7caf
commit 3eca978509
2 changed files with 47 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ Mocks.post = async (objects) => {
edited = Number.isNaN(edited.valueOf()) ? undefined : edited;
content = sanitize(content, sanitizeConfig);
content = await activitypub.helpers.remoteAnchorToLocalProfile(content);
const payload = {
uid,