fedimbed: limmy has author url as id not url
This commit is contained in:
parent
39ec14a6b0
commit
c55db86e53
1 changed files with 1 additions and 1 deletions
|
@ -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}`,
|
||||||
|
|
Loading…
Reference in a new issue