diff options
author | Anthony Wang | 2023-02-18 17:15:14 +0000 |
---|---|---|
committer | Anthony Wang | 2023-02-18 17:15:14 +0000 |
commit | 07df0a6b1c97be4b03d23d5dfa047a108de36592 (patch) | |
tree | dc3d03ce27664a0df32ca3415ae8939b4a3dcd0c /routers | |
parent | e61e9fba59d6e6f0eb86869e07d9d52867384132 (diff) |
Switch back to mainline go-ap
Marius merged my last go-ap patch (https://lists.sr.ht/~mariusor/activitypub-go/%3Cf23190d1-1376-6ad1-63ee-9c0d291d1eb5%40exozy.me%3E#%3C20230218114214.b5hecpabruk66g7r@slate%3E) so we no longer have to use my custom fork
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/activitypub/authorize_interaction.go | 2 | ||||
-rw-r--r-- | routers/api/v1/activitypub/repo.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/activitypub/authorize_interaction.go b/routers/api/v1/activitypub/authorize_interaction.go index 66b8f967b..b416e5ae8 100644 --- a/routers/api/v1/activitypub/authorize_interaction.go +++ b/routers/api/v1/activitypub/authorize_interaction.go @@ -27,7 +27,7 @@ func AuthorizeInteraction(ctx *context.Context) { ap.ItemTyperFunc = forgefed.GetItemByType ap.JSONItemUnmarshal = forgefed.JSONUnmarshalerFn - ap.NotEmptyChecker = forgefed.NotEmpty + ap.IsNotEmpty = forgefed.NotEmpty object, err := ap.UnmarshalJSON(resp) if err != nil { ctx.ServerError("UnmarshalJSON", err) diff --git a/routers/api/v1/activitypub/repo.go b/routers/api/v1/activitypub/repo.go index eb9a7930c..a05b62cb4 100644 --- a/routers/api/v1/activitypub/repo.go +++ b/routers/api/v1/activitypub/repo.go @@ -94,7 +94,7 @@ func RepoInbox(ctx *context.APIContext) { ap.ItemTyperFunc = forgefed.GetItemByType ap.JSONItemUnmarshal = forgefed.JSONUnmarshalerFn - ap.NotEmptyChecker = forgefed.NotEmpty + ap.IsNotEmpty = forgefed.NotEmpty var activity ap.Activity err = activity.UnmarshalJSON(body) if err != nil { |