this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update ozone lexicons (note manual 'Profile' commented out)

+47 -4
+15 -3
api/ozone/moderationdefs.go
··· 136 136 137 137 // ModerationDefs_ModEventComment is a "modEventComment" in the tools.ozone.moderation.defs schema. 138 138 // 139 - // # Add a comment to a subject 139 + // Add a comment to a subject. An empty comment will clear any previously set sticky comment. 140 140 // 141 141 // RECORDTYPE: ModerationDefs_ModEventComment 142 142 type ModerationDefs_ModEventComment struct { 143 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"` 144 - Comment string `json:"comment" cborgen:"comment"` 143 + LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"` 144 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 145 145 // sticky: Make the comment persistent on the subject 146 146 Sticky *bool `json:"sticky,omitempty" cborgen:"sticky,omitempty"` 147 147 } ··· 1037 1037 default: 1038 1038 return nil 1039 1039 } 1040 + } 1041 + 1042 + // ModerationDefs_SubjectView is a "subjectView" in the tools.ozone.moderation.defs schema. 1043 + // 1044 + // Detailed view of a subject. For record subjects, the author's repo and profile will be returned. 1045 + type ModerationDefs_SubjectView struct { 1046 + //Profile *ModerationDefs_SubjectView_Profile `json:"profile,omitempty" cborgen:"profile,omitempty"` 1047 + Record *ModerationDefs_RecordViewDetail `json:"record,omitempty" cborgen:"record,omitempty"` 1048 + Repo *ModerationDefs_RepoViewDetail `json:"repo,omitempty" cborgen:"repo,omitempty"` 1049 + Status *ModerationDefs_SubjectStatusView `json:"status,omitempty" cborgen:"status,omitempty"` 1050 + Subject string `json:"subject" cborgen:"subject"` 1051 + Type *string `json:"type" cborgen:"type"` 1040 1052 } 1041 1053 1042 1054 // ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema.
+30
api/ozone/moderationgetSubjects.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.moderation.getSubjects 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // ModerationGetSubjects_Output is the output of a tools.ozone.moderation.getSubjects call. 14 + type ModerationGetSubjects_Output struct { 15 + Subjects []*ModerationDefs_SubjectView `json:"subjects" cborgen:"subjects"` 16 + } 17 + 18 + // ModerationGetSubjects calls the XRPC method "tools.ozone.moderation.getSubjects". 19 + func ModerationGetSubjects(ctx context.Context, c *xrpc.Client, subjects []string) (*ModerationGetSubjects_Output, error) { 20 + var out ModerationGetSubjects_Output 21 + 22 + params := map[string]interface{}{ 23 + "subjects": subjects, 24 + } 25 + if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil { 26 + return nil, err 27 + } 28 + 29 + return &out, nil 30 + }
+2 -1
api/ozone/teamlistMembers.go
··· 17 17 } 18 18 19 19 // TeamListMembers calls the XRPC method "tools.ozone.team.listMembers". 20 - func TeamListMembers(ctx context.Context, c *xrpc.Client, cursor string, disabled bool, limit int64, roles []string) (*TeamListMembers_Output, error) { 20 + func TeamListMembers(ctx context.Context, c *xrpc.Client, cursor string, disabled bool, limit int64, q string, roles []string) (*TeamListMembers_Output, error) { 21 21 var out TeamListMembers_Output 22 22 23 23 params := map[string]interface{}{ 24 24 "cursor": cursor, 25 25 "disabled": disabled, 26 26 "limit": limit, 27 + "q": q, 27 28 "roles": roles, 28 29 } 29 30 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.team.listMembers", params, nil, &out); err != nil {