Moin
12월 16, 2025, 11:22오후
1
Toggling the "AI search discoveries" preference doesn't work 에서 이어서 논의합니다:
이것이 채팅 이메일 설정을 https://meta.discourse.org/my/preferences/emails 에서 깨뜨렸을 가능성이 있을까요? PR이 생성되었을 때 채팅 설정은 여전히 작동하고 있다고 생각합니다. 기억이 정확하지는 않지만, 해당 플러그인 설정도 깨져 있는지 궁금해서 시험해 봤고, 그때는 문제가 없었습니다. 하지만 지금은 제 포럼과 Meta 모두에서 채팅 이메일을 비활성화할 수 없습니다.
3개의 좋아요
lindsey
(Lindsey Fogle)
12월 17, 2025, 1:38오후
7
Moin님, 이 건에 대해 확인 중이며 곧 더 자세한 업데이트를 드리겠습니다.
2개의 좋아요
Moin
12월 18, 2025, 5:23오후
9
포럼의 테스트 사용자에 대해 채팅 메시지에 대한 이메일 알림을 성공적으로 비활성화했습니다
아마도 다음 PR에서 수정되었을 것입니다:
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
2개의 좋아요
lindsey
(Lindsey Fogle)
12월 18, 2025, 5:33오후
10
네! @zogstrip이 코어에서 이 문제를 수정했고, 영향을 받은 플러그인들도 현재 처리하고 있습니다.
1개의 좋아요
영향받는 모든 플러그인이 최신 버전으로 업데이트되었음을 확인합니다
@Moin 감사합니다.
1개의 좋아요