diff --git a/README.md b/README.md index 2a48b7be..e6a775aa 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ - Webmentions moderation + API: `/webmentions` - Conversations + API: `/conversations` - GitHub activity + API: `/github` -- Funkwhale activity + API: `/funkwhale` (enabled when `FUNKWHALE_INSTANCE`, `FUNKWHALE_USERNAME`, `FUNKWHALE_TOKEN` are set) -- Last.fm activity + API: `/lastfmapi` (enabled when `LASTFM_API_KEY`, `LASTFM_USERNAME` are set) +- Funkwhale activity + API: `/funkwhale` +- Last.fm activity + API: `/lastfmapi` ## MongoDB @@ -75,7 +75,7 @@ - Last.fm endpoint requirements: - `LASTFM_API_KEY` - `LASTFM_USERNAME` -- If these variables are missing, the related endpoint plugin is not enabled and `/listening` will show no listening history. +- If these variables are missing, the endpoints still exist but return empty activity until credentials are configured. ## Startup script diff --git a/indiekit.config.mjs b/indiekit.config.mjs index 24c8e0f0..9503f3d6 100644 --- a/indiekit.config.mjs +++ b/indiekit.config.mjs @@ -36,10 +36,6 @@ const funkwhaleUsername = process.env.FUNKWHALE_USERNAME; const funkwhaleToken = process.env.FUNKWHALE_TOKEN; const lastfmApiKey = process.env.LASTFM_API_KEY; const lastfmUsername = process.env.LASTFM_USERNAME; -const enableFunkwhaleEndpoint = Boolean( - funkwhaleInstance && funkwhaleUsername && funkwhaleToken, -); -const enableLastfmEndpoint = Boolean(lastfmApiKey && lastfmUsername); const publicationBaseUrl = ( process.env.PUBLICATION_URL || "https://blog.giersig.eu" ).replace(/\/+$/, ""); @@ -127,8 +123,8 @@ export default { "@rmdes/indiekit-endpoint-github", "@rmdes/indiekit-endpoint-webmention-io", "@rmdes/indiekit-endpoint-conversations", - ...(enableFunkwhaleEndpoint ? ["@rmdes/indiekit-endpoint-funkwhale"] : []), - ...(enableLastfmEndpoint ? ["@rmdes/indiekit-endpoint-lastfm"] : []), + "@rmdes/indiekit-endpoint-funkwhale", + "@rmdes/indiekit-endpoint-lastfm", //"@rmdes/indiekit-endpoint-activitypub", ], "@indiekit/store-github": {