Fix #329 - avatar errors no longer prevent remote accounts from being saved
(without avatar). Also improved search position of exact matches
This commit is contained in:
parent
2b2797d6a5
commit
58b3f4fd67
7 changed files with 46 additions and 26 deletions
|
@ -15,7 +15,8 @@ class UpdateRemoteProfileService < BaseService
|
|||
|
||||
old_hub_url = account.hub_url
|
||||
account.hub_url = hub_link['href'] if !hub_link.nil? && !hub_link['href'].blank? && (hub_link['href'] != old_hub_url)
|
||||
account.save!
|
||||
|
||||
account.save_with_optional_avatar!
|
||||
|
||||
SubscribeService.new.call(account) if resubscribe && (account.hub_url != old_hub_url)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue