projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c074ef
)
Bio can actually be nil.
author
Roger Braun
<roger@rogerbraun.net>
Mon, 26 Jun 2017 15:00:58 +0000
(17:00 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Mon, 26 Jun 2017 15:00:58 +0000
(17:00 +0200)
lib/pleroma/web/ostatus/ostatus.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/ostatus/ostatus.ex
b/lib/pleroma/web/ostatus/ostatus.ex
index f987752a02ae470adda5b88794583c1ce869ef60..4187afa9df06bfb809b9c8b08dffa26b45e49e19 100644
(file)
--- a/
lib/pleroma/web/ostatus/ostatus.ex
+++ b/
lib/pleroma/web/ostatus/ostatus.ex
@@
-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