Compare commits

..

4 Commits

Author SHA1 Message Date
f0846308da
Only update other avatars in one place
All checks were successful
continuous-integration/drone/push Build is passing
Prevent future mistakes
2025-05-17 18:02:13 +04:00
b3b7fe6359
Don't queue job when service isn't enabled 2025-05-17 18:02:13 +04:00
f0b541ee50
Add avatar to admin user page 2025-05-17 18:02:13 +04:00
df9077e3c1
Sync Mastodon IDs/profiles to local accounts
Add a new service to import some data from Mastodon accounts:

* Find users by username, store Mastodon account ID in local db when
  found
* Import display name (don't overwrite existing)
* Import avatar (don't overwrite existing)
2025-05-17 18:02:07 +04:00
4 changed files with 47 additions and 45 deletions

View File

@ -11,6 +11,8 @@ module UserManager
end end
end end
private
def import_remote_avatar def import_remote_avatar
tempfile = Down.download(@avatar_url) tempfile = Down.download(@avatar_url)
content_type = tempfile.content_type content_type = tempfile.content_type