upd: change deps, fix a few bugs, update converter
Fixes User and Notes count bug (transfem-org/Sharkey#113) Fixes build issues due to types (transfem-org/Sharkey#111) Return accounts and notes like Iceshrimp Use MFM class from Iceshrimp to fix HTML output for mastodon
This commit is contained in:
@@ -78,8 +78,10 @@ namespace MisskeyAPI {
|
||||
acct = `${u.username}@${u.host}`;
|
||||
acctUrl = `https://${u.host}/@${u.username}`;
|
||||
}
|
||||
const fqn = `${u.username}@${u.host ?? host}`;
|
||||
return {
|
||||
id: u.id,
|
||||
fqn: fqn,
|
||||
username: u.username,
|
||||
acct: acct,
|
||||
display_name: u.name ? u.name : '',
|
||||
@@ -465,8 +467,8 @@ namespace MisskeyAPI {
|
||||
|
||||
export const stats = (s: Entity.Stats): MegalodonEntity.Stats => {
|
||||
return {
|
||||
user_count: s.usersCount,
|
||||
status_count: s.notesCount,
|
||||
user_count: s.originalUsersCount,
|
||||
status_count: s.originalNotesCount,
|
||||
domain_count: s.instances
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user