1
0

fix: megalodon reblogged and favourited user info, add createdAt to note

This commit is contained in:
Mar0xy
2023-09-25 03:55:21 +02:00
parent 74213ba2b9
commit a7778e6425
5 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -256,7 +256,7 @@ namespace MisskeyAPI {
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,
reblog: n.renote ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : null,
content: n.text
? n.text
.replace(/&/g, '&')
@@ -269,6 +269,7 @@ namespace MisskeyAPI {
: '',
plain_content: n.text ? n.text : null,
created_at: n.createdAt,
createdAt: n.createdAt,
emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)),
replies_count: n.repliesCount,
reblogs_count: n.renoteCount,