Merge branch 'feature/mastodon_api' into live
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
613090d38a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user