upd: apply host to alot of fields

This commit is contained in:
Mar0xy 2023-09-25 02:40:04 +02:00
parent 1b9897f83b
commit df62b3786a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
5 changed files with 23 additions and 21 deletions

View file

@ -253,7 +253,7 @@ namespace MisskeyAPI {
id: n.id,
uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '',
url: n.url ? n.url : host ? `https://${host}/notes/${n.id}` : '',
account: user(n.user, host ? host : null),
account: user(n.user, n.user.host ? n.user.host : host ? host : null),
in_reply_to_id: n.replyId,
in_reply_to_account_id: null,
reblog: n.renote ? note(n.renote) : null,