fix relationship data for Mastodon API (resolves #714)
This commit is contained in:
@@ -227,13 +227,14 @@ namespace MisskeyAPI {
|
||||
blocking: r.isBlocking,
|
||||
blocked_by: r.isBlocked,
|
||||
muting: r.isMuted,
|
||||
muting_notifications: false,
|
||||
muting_notifications: r.isMuted,
|
||||
requested: r.hasPendingFollowRequestFromYou,
|
||||
domain_blocking: false,
|
||||
showing_reblogs: true,
|
||||
requested_by: r.hasPendingFollowRequestToYou,
|
||||
domain_blocking: r.isInstanceMuted ?? false,
|
||||
showing_reblogs: !r.isRenoteMuted,
|
||||
endorsed: false,
|
||||
notifying: false,
|
||||
note: null
|
||||
notifying: !r.isMuted,
|
||||
note: r.memo ?? '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,5 +8,8 @@ namespace MisskeyEntity {
|
||||
isBlocking: boolean
|
||||
isBlocked: boolean
|
||||
isMuted: boolean
|
||||
isRenoteMuted: boolean
|
||||
isInstanceMuted?: boolean
|
||||
memo?: string | null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user