diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 32fc6aa..57d7ed2 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -116,7 +116,7 @@ async function processUrl(msg, url) { if (PATH_REGEX.pleroma2.test(urlObj.pathname)) { redirUrl = url.replace("notice", "api/v1/statuses"); } else if (PATH_REGEX.mastodon.test(urlObj.pathName)) { - redirUrl = url.replace(/@(.+?)\//, "api/v1/statuses/"); + redirUrl = url.replace(/@(.+?)\/(\d+)\/?/, "api/v1/statuses/$2"); } else { logger.error( "fedimbed",