summaryrefslogtreecommitdiff
path: root/internal/federation
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation')
-rw-r--r--internal/federation/dereferencing/status_permitted.go4
-rw-r--r--internal/federation/federatingdb/like.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/federation/dereferencing/status_permitted.go b/internal/federation/dereferencing/status_permitted.go
index 65251ed55..848a821d1 100644
--- a/internal/federation/dereferencing/status_permitted.go
+++ b/internal/federation/dereferencing/status_permitted.go
@@ -265,7 +265,7 @@ func (d *Dereferencer) isPermittedReply(
)
}
- if replyable.Permitted() &&
+ if replyable.AutomaticApproval() &&
!replyable.MatchedOnCollection() {
// Reply is permitted and match was *not* made
// based on inclusion in a followers/following
@@ -569,7 +569,7 @@ func (d *Dereferencer) isPermittedBoost(
return false, nil
}
- if boostable.Permitted() &&
+ if boostable.AutomaticApproval() &&
!boostable.MatchedOnCollection() {
// Booster is permitted to do this
// interaction, and didn't match on
diff --git a/internal/federation/federatingdb/like.go b/internal/federation/federatingdb/like.go
index 76ae19a52..970ca53ef 100644
--- a/internal/federation/federatingdb/like.go
+++ b/internal/federation/federatingdb/like.go
@@ -98,7 +98,7 @@ func (f *federatingDB) Like(ctx context.Context, likeable vocab.ActivityStreamsL
)
switch {
- case policyResult.WithApproval():
+ case policyResult.ManualApproval():
// Requester allowed to do
// this pending approval.
pendingApproval = true
@@ -111,7 +111,7 @@ func (f *federatingDB) Like(ctx context.Context, likeable vocab.ActivityStreamsL
pendingApproval = true
preApproved = true
- case policyResult.Permitted():
+ case policyResult.AutomaticApproval():
// Requester straight up
// permitted to do this,
// no need for Accept.