Compare commits
6 Commits
1dcdc2b032
...
fb03427d59
| Author | SHA1 | Date | |
|---|---|---|---|
| fb03427d59 | |||
| ad138f715c | |||
| 6730aae2dc | |||
| a71aa3fda2 | |||
| 92e6b1395a | |||
| 37c59b7b0c |
@ -24,7 +24,7 @@ module MastodonManager
|
|||||||
mastodon_user = MastodonManager::FindUser.call username: user.cn
|
mastodon_user = MastodonManager::FindUser.call username: user.cn
|
||||||
if mastodon_user
|
if mastodon_user
|
||||||
Rails.logger.debug { "Setting mastodon_id for user #{user.cn}" }
|
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
|
else
|
||||||
Rails.logger.debug { "No Mastodon user found for username #{user.cn}" }
|
Rails.logger.debug { "No Mastodon user found for username #{user.cn}" }
|
||||||
next
|
next
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user