this repo has no description
0
fork

Configure Feed

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

automod: fix label creation/action

+9 -1
+6
automod/engine.go
··· 98 98 if err := evt.PersistAccountActions(ctx); err != nil { 99 99 return err 100 100 } 101 + if err := evt.PersistRecordActions(ctx); err != nil { 102 + return err 103 + } 101 104 if err := evt.PersistCounters(ctx); err != nil { 102 105 return err 103 106 } ··· 112 115 } 113 116 evt.CanonicalLogLine() 114 117 if err := evt.PersistAccountActions(ctx); err != nil { 118 + return err 119 + } 120 + if err := evt.PersistRecordActions(ctx); err != nil { 115 121 return err 116 122 } 117 123 if err := evt.PersistCounters(ctx); err != nil {
+2 -1
automod/event.go
··· 206 206 } 207 207 xrpcc := e.Engine.AdminClient 208 208 if len(e.RecordLabels) > 0 { 209 + // TODO: this does an action, not just create labels; will update after event refactor 209 210 _, err := comatproto.AdminTakeModerationAction(ctx, xrpcc, &comatproto.AdminTakeModerationAction_Input{ 210 - Action: "com.atproto.admin.defs#createLabels", 211 + Action: "com.atproto.admin.defs#flag", 211 212 CreateLabelVals: dedupeStrings(e.RecordLabels), 212 213 Reason: "automod", 213 214 CreatedBy: xrpcc.Auth.Did,
+1
cmd/hepa/server.go
··· 54 54 Client: util.RobustHTTPClient(), 55 55 Host: config.ModHost, 56 56 AdminToken: &config.ModAdminToken, 57 + Auth: &xrpc.AuthInfo{}, 57 58 } 58 59 59 60 auth, err := comatproto.ServerCreateSession(context.TODO(), xrpcc, &comatproto.ServerCreateSession_Input{