Skip to content
Snippets Groups Projects
Commit d8bbbeb0 authored by lain's avatar lain
Browse files

Bio can actually be nil.

parent 1c074efe
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ defmodule Pleroma.Web.OStatus 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment