discourse/app
Osama Sayegh 5eea7244c7
FIX: Add users to user directory on account activation (#28505)
Follow-up to e3ae57ea7a

The previous commit added an `after_create` callback that triggers a refresh for the user directory whenever a `User` record is created. Theoretically, this approach should work, however, there's a gotcha in practice, because during a real user registration, when the `User` record is created in the database, it's not marked as active until the user verifies their email address and the user directory excludes inactive users, so the initial directory refresh triggered by the `after_create` callback becomes pointless.

To make a new user appear in the user directory immediately after sign up, we need to trigger a refresh via an `after_save` callback when they verify their email address and become active.
2024-08-26 18:01:24 +03:00
..
assets DEV: Add missing @ember/string dependencies (#28547) 2024-08-26 15:48:01 +02:00
controllers FEATURE: Allow showing site text search in selected locale (#28453) 2024-08-26 11:25:36 +10:00
helpers UX: Use localized time format in embedded comments (#28014) 2024-07-22 18:42:36 +08:00
jobs DEV: Allow using an AR relation as a model in services 2024-08-20 16:32:46 +02:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FIX: Add users to user directory on account activation (#28505) 2024-08-26 18:01:24 +03:00
serializers FIX: Return properly interpolated translations for flags 2024-08-26 16:46:30 +02:00
services DEV: Use Service::Base for suspend and silence actions (#28459) 2024-08-22 14:38:56 +03:00
views DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00