[backend/masto-client] Add FollowRequestCount to AccountSource
This commit is contained in:
parent
ee16a7ab15
commit
d2e7753dd1
2 changed files with 8 additions and 6 deletions
|
@ -76,7 +76,8 @@ public class UserRenderer(IOptions<Config.InstanceSection> config, MfmConverter
|
|||
Note = profile?.Description ?? "",
|
||||
Privacy = StatusEntity.EncodeVisibility(user.UserSettings?.DefaultNoteVisibility ??
|
||||
Note.NoteVisibility.Public),
|
||||
Sensitive = false
|
||||
Sensitive = false,
|
||||
FollowRequestCount = await db.FollowRequests.CountAsync(p => p.Followee == user)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -44,4 +44,5 @@ public class AccountSource
|
|||
[J("privacy")] public required string Privacy { get; set; }
|
||||
[J("sensitive")] public required bool Sensitive { get; set; }
|
||||
[J("fields")] public required List<Field> Fields { get; set; }
|
||||
[J("follow_requests_count")] public required int FollowRequestCount { get; set; }
|
||||
}
|
Loading…
Add table
Reference in a new issue