change group views to add new parameters - #687

This commit is contained in:
Laurent GAY
2025-11-12 13:12:56 +01:00
committed by setop
parent 3cdfc76aff
commit 7b6c06d233
9 changed files with 86 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ export interface IGroup extends IActor {
openness: Openness;
visibility: GroupVisibility;
manuallyApprovesFollowers: boolean;
allowSeeParticipants: boolean;
activity: Paginate<IActivity>;
followers: Paginate<IFollower>;
membersCount?: number;
@@ -58,6 +59,8 @@ export class Group extends Actor implements IGroup {
manuallyApprovesFollowers = false;
allowSeeParticipants = true;
patch(hash: IGroup | Record<string, unknown>): void {
Object.assign(this, hash);
}