Skip to content

Commit

Permalink
✨ Fix breaking changes due to lexicon changes
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Nov 15, 2024
1 parent 1ae6c0d commit e6daafb
Show file tree
Hide file tree
Showing 9 changed files with 212 additions and 9 deletions.
1 change: 1 addition & 0 deletions api/chat/convodefs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 66 additions & 6 deletions api/ozone/moderationdefs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion api/ozone/moderationqueryStatuses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions api/ozone/settingdefs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions api/ozone/settinglistOptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions api/ozone/settingremoveOptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions api/ozone/settingupsertOption.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions automod/engine/reroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ func (eng *Engine) RerouteAccountEventToOzone(c context.Context, e *comatproto.S
ModerationDefs_AccountEvent: &toolsozone.ModerationDefs_AccountEvent{
Comment: &comment,
Timestamp: e.Time,
Status: *e.Status,
Active: &e.Active,
Status: e.Status,
Active: e.Active,
},
}, toolsozone.ModerationEmitEvent_Input_Subject{
AdminDefs_RepoRef: &comatproto.AdminDefs_RepoRef{
Expand Down Expand Up @@ -118,6 +118,7 @@ func (eng *Engine) IsDuplicatingEvent(ctx context.Context, event toolsozone.Mode
xrpcc,
nil,
nil,
[]string{},
"",
time.Now().Add(-time.Minute*5).Format(time.RFC3339),
"",
Expand All @@ -131,6 +132,7 @@ func (eng *Engine) IsDuplicatingEvent(ctx context.Context, event toolsozone.Mode
nil,
"",
eventSubject,
"",
[]string{eventType},
)

Expand Down
2 changes: 2 additions & 0 deletions automod/rules/mod_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package rules

import (
"github.com/bluesky-social/indigo/automod"
"github.com/labstack/gommon/log"
)

var _ automod.OzoneEventRuleFunc = CountModEventRule
Expand All @@ -14,6 +15,7 @@ func CountModEventRule(c *automod.OzoneEventContext) error {
}

c.Increment("mod-event", counterKey)
log.Print("mod-event", counterKey, c.GetCount("mod-event", counterKey, automod.PeriodTotal))

return nil
}

0 comments on commit e6daafb

Please sign in to comment.