Moin
16 Dicembre 2025, 11:22pm
1
Continuando la discussione da L’attivazione/disattivazione dell’opzione “scoperte di ricerca AI” non funziona :
C’è qualche possibilità che questo abbia rotto l’opzione delle email di chat su https://meta.discourse.org/my/preferences/emails ? Penso che quando la PR è stata creata, l’impostazione della chat funzionasse ancora. Se non ricordo male, ho provato perché ero curioso se anche quell’impostazione del plugin fosse rotta, e in quel momento non lo era. Ma ora non riesco a disabilitare le email di chat sul mio forum e su Meta.
3 Mi Piace
lindsey
(Lindsey Fogle)
17 Dicembre 2025, 1:38pm
7
Ciao @Moin , rapido aggiornamento: stiamo analizzando la questione e torneremo presto con un aggiornamento più sostanziale.
2 Mi Piace
Moin
18 Dicembre 2025, 5:23pm
9
Sono riuscito a disabilitare con successo le notifiche via email sui messaggi di chat per l’utente di prova nel mio forum
Probabilmente è stato risolto in
main ← dev-add-page-specific-saving-to-plugin-api
merged 09:58AM - 18 Dec 25 UTC
Previously, plugins that needed to save user preferences on specific preference … pages had to either:
1. Manually register value transformers for `preferences-save-attributes`
2. Use `modifyClass` to push fields to `saveAttrNames`
The second approach was broken because `saveAttrNames` is now a getter that returns a fresh array each time, so pushed values were lost.
This commit introduces three new plugin APIs that handle the transformer registration automatically:
- `addSaveableUserOption(name, { page })` - for `user_options` table fields
- `addSaveableUserField(name, { page })` - for `user_fields` table fields
- `addSaveableCustomFields(page)` - ensures `custom_fields` object is saved on a page (auto-deduplicates across plugins)
The `{ page }` option specifies which preferences page triggers saving: "account", "emails", "interface", "notifications", "profile", "tracking", etc.
Also updates bundled plugins to use the new APIs:
- chat: `addSaveableUserOption` with `{ page: "emails" }` for email frequency
- discourse-ai: `addSaveableUserOption` with `{ page: "interface" }`
- discourse-assign: `addSaveableUserOption` with `{ page: "tracking" }`, `addSaveableCustomFields` with `"notifications"`
- discourse-policy: `addSaveableUserOption` with `{ page: "emails" }`
- discourse-rewind: `addSaveableUserOption` (no page, custom prefs page)
Deprecates `addSaveableUserOptionField` in favor of `addSaveableUserOption`.
Ref - https://meta.discourse.org/t/391509
Follow up to ee1a1c7219fea70215300c9bf81ce215a09ce17b
1 Mi Piace
lindsey
(Lindsey Fogle)
18 Dicembre 2025, 5:33pm
10
Sì! @zogstrip ha risolto questo problema nel core e sta lavorando anche sui plugin interessati.