Skip to content

Commit

Permalink
new accounts, sexual profile, as report not auto-label
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Aug 31, 2024
1 parent 6ac3da7 commit f0be52f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion automod/visual/hiveai_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package visual

import (
"strings"
"time"

"github.com/bluesky-social/indigo/automod"
"github.com/bluesky-social/indigo/automod/rules"
lexutil "github.com/bluesky-social/indigo/lex/util"
)

Expand Down Expand Up @@ -39,7 +41,13 @@ func (hal *HiveAIClient) HiveLabelBlobRule(c *automod.RecordContext, blob lexuti
}

for _, l := range labels {
c.AddRecordLabel(l)
// NOTE: experimenting with profile reporting for new accounts
if l == "sexual" && c.RecordOp.Collection.String() == "app.bsky.actor.profile" && rules.AccountIsYoungerThan(&c.AccountContext, 2*24*time.Hour) {
c.ReportRecord(automod.ReportReasonSexual, "possible sexual profile (not labeled yet)")
c.Logger.Info("skipping record label", "label", l, "reason", "sexual-profile-experiment")
} else {
c.AddRecordLabel(l)
}
}

return nil
Expand Down

0 comments on commit f0be52f

Please sign in to comment.