logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: d8bbbeb03abfd0cc26f7bb46ff2788f8ff3c4ed3
parent 1c074efeaf720bba7a2ee81fd7ee1f01cfd084e4
Author: Roger Braun <roger@rogerbraun.net>
Date:   Mon, 26 Jun 2017 17:00:58 +0200

Bio can actually be nil.

Diffstat:

Mlib/pleroma/web/ostatus/ostatus.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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