Handle create requests but immediately throw an error that we ignore them
This commit is contained in:
13
activitypub/inbox/create.go
Normal file
13
activitypub/inbox/create.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package inbox
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-fed/activity/streams/vocab"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func handleCreateRequest(c context.Context, activity vocab.ActivityStreamsCreate) error {
|
||||
iri := activity.GetJSONLDId().GetIRI().String()
|
||||
return errors.New("not handling create request of: " + iri)
|
||||
}
|
||||
Reference in New Issue
Block a user