Queue XmppSetAvatarJob when new avatar is uploaded
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Failing after 10m9s

And let job do nothing in development for now
This commit is contained in:
2025-05-15 22:04:25 +04:00
parent 5916969447
commit 5f276ff349
3 changed files with 19 additions and 7 deletions

View File

@@ -36,6 +36,7 @@ class SettingsController < ApplicationController
if @user.avatar_new.present?
if store_user_avatar
LdapManager::UpdateAvatar.call(user: @user)
XmppSetAvatarJob.perform_later(user: @user)
else
@validation_errors = @user.errors
render :show, status: :unprocessable_entity and return