Compare commits
7 Commits
f1c540537a
...
613090d38a
Author | SHA1 | Date | |
---|---|---|---|
613090d38a | |||
fb03427d59 | |||
ad138f715c | |||
6730aae2dc | |||
a71aa3fda2 | |||
92e6b1395a | |||
37c59b7b0c |
@ -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