fedimbed: limmy has author url as id not url

This commit is contained in:
Cynthia Foxwell 2023-09-22 21:03:22 -06:00
parent 39ec14a6b0
commit c55db86e53

View file

@ -435,7 +435,7 @@ async function processUrl(msg, url, spoiler = false) {
}); });
if (authorData) { if (authorData) {
const authorUrlObj = new URL(authorData.url); const authorUrlObj = new URL(authorData.url ?? authorData.id);
author = { author = {
name: authorData.name, name: authorData.name,
handle: `${authorData.preferredUsername}@${authorUrlObj.hostname}`, handle: `${authorData.preferredUsername}@${authorUrlObj.hostname}`,