WP Discourse SSO does not synchronize local avatars provided by Advanced Site Enhancements

Hello,

I am using:

  • WordPress
  • WP Discourse (latest version)
  • Advanced Site Enhancements (ASE), using its Local User Avatar feature (no Gravatar)

The avatar is correctly displayed everywhere in WordPress.

ASE stores the attachment ID in the user meta field:

local_user_avatar_attachment_id

During WordPress SSO login, however, Discourse always imports the default avatar instead of the local avatar.

I already tried using the wpdc_sso_avatar_url filter to return the media library URL, but it made no difference.

Therefore I have two questions:

  1. Does WP Discourse still use wpdc_sso_avatar_url for avatar synchronization?
  2. Which function or filter is currently responsible for determining the avatar URL sent to Discourse?

Any guidance would be appreciated.