Compare commits
6 Commits
fb03427d59
...
1dcdc2b032
| Author | SHA1 | Date | |
|---|---|---|---|
|
1dcdc2b032
|
|||
|
bfa1514181
|
|||
|
f0846308da
|
|||
|
b3b7fe6359
|
|||
|
f0b541ee50
|
|||
|
df9077e3c1
|
@@ -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: mastodon_user.dig(:account, :id).to_i
|
||||
user.update! mastodon_id: @user[:id]
|
||||
else
|
||||
Rails.logger.debug { "No Mastodon user found for username #{user.cn}" }
|
||||
next
|
||||
|
||||
Reference in New Issue
Block a user