+9
-1
automod/visual/hiveai_rule.go
+9
-1
automod/visual/hiveai_rule.go
···
2
2
3
3
import (
4
4
"strings"
5
+
"time"
5
6
6
7
"github.com/bluesky-social/indigo/automod"
8
+
"github.com/bluesky-social/indigo/automod/rules"
7
9
lexutil "github.com/bluesky-social/indigo/lex/util"
8
10
)
9
11
···
39
41
}
40
42
41
43
for _, l := range labels {
42
-
c.AddRecordLabel(l)
44
+
// NOTE: experimenting with profile reporting for new accounts
45
+
if l == "sexual" && c.RecordOp.Collection.String() == "app.bsky.actor.profile" && rules.AccountIsYoungerThan(&c.AccountContext, 2*24*time.Hour) {
46
+
c.ReportRecord(automod.ReportReasonSexual, "possible sexual profile (not labeled yet)")
47
+
c.Logger.Info("skipping record label", "label", l, "reason", "sexual-profile-experiment")
48
+
} else {
49
+
c.AddRecordLabel(l)
50
+
}
43
51
}
44
52
45
53
return nil