Moin
16 ديسمبر 2025، 11:22م
1
متابعة للنقاش من عدم عمل تبديل تفضيل “اكتشافات بحث الذكاء الاصطناعي” :
هل هناك أي احتمال أن يكون هذا قد أفسد تفضيل بريد الدردشة في https://meta.discourse.org/my/preferences/emails ؟ أعتقد أنه عندما تم إنشاء طلب السحب (PR)، كان إعداد الدردشة لا يزال يعمل. إذا كنت أتذكر جيدًا، فقد حاولت لأنني كنت أتساءل عما إذا كان إعداد المكون الإضافي هذا معطلاً أيضًا، وفي ذلك الوقت لم يكن كذلك. ولكن الآن لا يمكنني تعطيل رسائل البريد الإلكتروني للدردشة على منتدى الخاص بي وعلى Meta.
3 إعجابات
lindsey
(Lindsey Fogle)
17 ديسمبر 2025، 1:38م
7
مرحباً @Moin ، تحديث سريع بأننا نتحرى الأمر وسنتواصل معك بتحديث أكثر جوهرية قريباً.
إعجابَين (2)
Moin
18 ديسمبر 2025، 5:23م
9
لقد تمكنت من تعطيل إشعارات البريد الإلكتروني لرسائل الدردشة بنجاح للمستخدم التجريبي في منتدىي
ربما تم إصلاح ذلك في
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)
lindsey
(Lindsey Fogle)
18 ديسمبر 2025، 5:33م
10
نعم! قام @zogstrip بإصلاح هذا في النواة (core) ويعمل حاليًا على المكونات الإضافية (plugins) المتأثرة أيضًا.