fedimbed: more debug
This commit is contained in:
parent
705f9062e0
commit
666daf4fdf
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ async function processUrl(msg, url) {
|
||||||
} else if (noteId.indexOf("#") > -1) {
|
} else if (noteId.indexOf("#") > -1) {
|
||||||
noteId = noteId.split("#")[0];
|
noteId = noteId.split("#")[0];
|
||||||
}
|
}
|
||||||
logger.debug("fedimbed", "Misskey post ID: " + noteId);
|
logger.verbose("fedimbed", "Misskey post ID: " + noteId);
|
||||||
redirUrl = urlObj.origin + "/api/notes/show/";
|
redirUrl = urlObj.origin + "/api/notes/show/";
|
||||||
options.method = "POST";
|
options.method = "POST";
|
||||||
options.body = JSON.stringify({noteId});
|
options.body = JSON.stringify({noteId});
|
||||||
|
@ -148,7 +148,7 @@ async function processUrl(msg, url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redirUrl) {
|
if (redirUrl) {
|
||||||
logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}"`);
|
logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(options)}, ${JSON.stringify(headers)}`);
|
||||||
const rawPostData2 = await fetch(
|
const rawPostData2 = await fetch(
|
||||||
redirUrl,
|
redirUrl,
|
||||||
Object.assign(options, {
|
Object.assign(options, {
|
||||||
|
|
Loading…
Reference in a new issue