upd: megalodon changes

This commit is contained in:
Mar0xy 2023-09-24 15:15:54 +02:00
parent c85857f242
commit 846f2d3877
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
2 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,7 @@ namespace MisskeyAPI {
return { return {
id: n.id, id: n.id,
uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '', uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '',
url: 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, host ? host : null),
in_reply_to_id: n.replyId, in_reply_to_id: n.replyId,
in_reply_to_account_id: null, in_reply_to_account_id: null,

View File

@ -23,6 +23,7 @@ namespace MisskeyEntity {
replyId: string | null replyId: string | null
renoteId: string | null renoteId: string | null
uri?: string uri?: string
url?: string
reply?: Note reply?: Note
renote?: Note renote?: Note
viaMobile?: boolean viaMobile?: boolean