Merge branch 'feature/mastodon_api' into live
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-17 18:57:10 +04:00

View File

@@ -24,7 +24,7 @@ module MastodonManager
mastodon_user = MastodonManager::FindUser.call username: user.cn
if mastodon_user
Rails.logger.debug { "Setting mastodon_id for user #{user.cn}" }
user.update! mastodon_id: @user[:id]
user.update! mastodon_id: mastodon_user.dig(:account, :id).to_i
else
Rails.logger.debug { "No Mastodon user found for username #{user.cn}" }
next