feat: add is_embed_enabled config to gate embed endpoints and UI#4314
Closed
feat: add is_embed_enabled config to gate embed endpoints and UI#4314
is_embed_enabled config to gate embed endpoints and UI#4314Conversation
Agent-Logs-Url: https://github.com/LycheeOrg/Lychee/sessions/9124130a-5f1e-47bc-9b13-53c399f83543 Co-authored-by: ildyria <627094+ildyria@users.noreply.github.com>
Agent-Logs-Url: https://github.com/LycheeOrg/Lychee/sessions/9124130a-5f1e-47bc-9b13-53c399f83543 Co-authored-by: ildyria <627094+ildyria@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ildyria
April 22, 2026 20:31
View session
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
config-category boolean settingis_embed_enabled(default:1) that acts as a master switch for the embed feature — disabling API endpoints at the HTTP layer and hiding all embed UI entry points.Backend
is_embed_enabledBOOL into theconfigstable (categoryconfig, default1)InitConfig: exposes the value to the frontend via the init endpointEmbedController: bothgetAlbumandgetPublicStreamthrow a generic404when the setting is off — no feature-disclosure in the responseFrontend
lychee.d.ts: addsis_embed_enabled: booleantoInitConfigtypeLycheeState: stores and hydrates the value from the init responseAlbumHero.vue:isEmbeddablecomputed returnsfalsewhen disabled, hiding the embed buttonleftMenu.ts: "Embed Stream" menu item gated onis_embed_enabled