show a friendly page for dead share links, drop plugin-specific selector defaults

Opening an expired or invalid link used to dump raw problem-details
JSON at the guest. Now they get a small page matching the sign-in
look, with the same neutral wording whether the link expired or never
existed (so tokens cannot be probed by outsiders), and an automatic
redirect to the Jellyfin home page. Fixes #1.

GuestHiddenSelectors now defaults to empty instead of shipping CSS
selectors for a plugin nobody else runs. Existing installs keep their
saved value. Fixes #3.
Cette révision appartient à :
Franciskid
2026-07-08 01:39:28 +02:00
Parent 2fb912e734
révision 06a49d0bfe
3 fichiers modifiés avec 53 ajouts et 8 suppressions
+2 -4
Voir le fichier
@@ -45,9 +45,7 @@ public class PluginConfiguration : BasePluginConfiguration
/// <summary>
/// Gets or sets a comma-separated list of CSS selectors that are hidden from guest
/// sessions in the web client. Used to suppress other plugins' injected UI (search
/// bars, floating buttons) so a guest only sees the shared title. The default value
/// hides the elements of a plugin that injects its own floating button and panel
/// into the web client; edit or clear it to match whatever else you run.
/// bars, floating buttons) so a guest only sees the shared title. Empty by default.
/// </summary>
public string GuestHiddenSelectors { get; set; } = ".ais-fab,.ais-overlay,#ais-styles";
public string GuestHiddenSelectors { get; set; } = string.Empty;
}