parent
9f52997be1
commit
bd3425b389
|
@ -149,7 +149,6 @@ class UserUpdater
|
||||||
|
|
||||||
saved = nil
|
saved = nil
|
||||||
|
|
||||||
begin
|
|
||||||
User.transaction do
|
User.transaction do
|
||||||
if attributes.key?(:muted_usernames)
|
if attributes.key?(:muted_usernames)
|
||||||
update_muted_users(attributes[:muted_usernames])
|
update_muted_users(attributes[:muted_usernames])
|
||||||
|
@ -169,7 +168,6 @@ class UserUpdater
|
||||||
attributes.fetch(:name) { '' }
|
attributes.fetch(:name) { '' }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
rescue Addressable::URI::InvalidURIError => e
|
rescue Addressable::URI::InvalidURIError => e
|
||||||
# Prevent 500 for crazy url input
|
# Prevent 500 for crazy url input
|
||||||
return saved
|
return saved
|
||||||
|
|
Loading…
Reference in New Issue