mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
[mastodon-client] Return uri as url if status has no known url and is not local
This commit is contained in:
parent
d8f13b6a06
commit
ed25373bc7
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ export class NoteConverter {
|
||||||
return await awaitAll({
|
return await awaitAll({
|
||||||
id: note.id,
|
id: note.id,
|
||||||
uri: note.uri ?? `https://${config.host}/notes/${note.id}`,
|
uri: note.uri ?? `https://${config.host}/notes/${note.id}`,
|
||||||
url: note.url ?? `https://${config.host}/notes/${note.id}`,
|
url: note.url ?? note.uri ?? `https://${config.host}/notes/${note.id}`,
|
||||||
account: Promise.resolve(noteUser).then(p => UserConverter.encode(p, ctx)),
|
account: Promise.resolve(noteUser).then(p => UserConverter.encode(p, ctx)),
|
||||||
in_reply_to_id: note.replyId,
|
in_reply_to_id: note.replyId,
|
||||||
in_reply_to_account_id: note.replyUserId,
|
in_reply_to_account_id: note.replyUserId,
|
||||||
|
|
Loading…
Reference in a new issue