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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user