Bio can actually be nil.
This commit is contained in:
parent
1c074efeaf
commit
d8bbbeb03a
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ def maybe_update(doc, user) do
|
|||
|
||||
with false <- user.local,
|
||||
avatar <- make_avatar_object(doc),
|
||||
bio when not is_nil(bio) <- string_from_xpath("//author[1]/summary", doc),
|
||||
bio <- string_from_xpath("//author[1]/summary", doc),
|
||||
name when not is_nil(name) <- string_from_xpath("//author[1]/poco:displayName", doc),
|
||||
new_data <- %{avatar: avatar, name: name, bio: bio},
|
||||
false <- new_data == old_data do
|
||||
|
|
Loading…
Reference in a new issue