Handle create requests but immediately throw an error that we ignore them

This commit is contained in:
Gabe Kangas
2022-01-12 18:42:33 -08:00
parent e8436f063e
commit 9eecf1c902
2 changed files with 16 additions and 5 deletions

View 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)
}