fedimbed: index moment

This commit is contained in:
Cynthia Foxwell 2022-12-31 13:11:09 -07:00
parent 666daf4fdf
commit 735aa308f8
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ async function processUrl(msg, url) {
} else if (PATH_REGEX.mastodon2.test(urlObj.pathname)) {
redirUrl = url.replace(/^\/(.+?)\/statuses/, "/api/v1/statuses");
} else if (PATH_REGEX.misskey.test(urlObj.pathname)) {
let noteId = url.split("/notes/")[0];
let noteId = url.split("/notes/")[1];
if (noteId.indexOf("/") > -1) {
noteId = noteId.split("/")[0];
} else if (noteId.indexOf("?") > -1) {