(UndefinedFunctionError) function nil.ap_enabled/0
I have this error when i did ´MIX_ENV=prod mix phx.server´. I do not know how it affects the instance, but I reproduce it here in case it helps to debug code.
20:59:36.137 [error] #PID<0.2355.0> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: pleroma.libretux.com:80 (http)
Request: POST /inbox
** (exit) an exception was raised:
** (UndefinedFunctionError) function nil.ap_enabled/0 is undefined
nil.ap_enabled()
(pleroma) lib/pleroma/web/activity_pub/transmogrifier.ex:926: Pleroma.Web.ActivityPub.Transmogrifier.upgrade_user_from_ap_id/2
(pleroma) lib/pleroma/user.ex:1014: Pleroma.User.get_or_fetch_by_ap_id/1
(pleroma) lib/pleroma/user.ex:1067: Pleroma.User.get_public_key_for_ap_id/1
(pleroma) lib/pleroma/web/http_signatures/http_signatures.ex:40: Pleroma.Web.HTTPSignatures.validate_conn/1
(pleroma) lib/pleroma/plugs/http_signature.ex:43: Pleroma.Web.Plugs.HTTPSignaturePlug.call/2
(pleroma) Pleroma.Web.Router.activitypub/2
(pleroma) lib/pleroma/web/router.ex:5: Pleroma.Web.Router.__pipe_through11__/1