logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 64e51c2cfa3e6da0f4998bab5358646cba8f29fa
parent: e97864bfcbda963823a00b38af763a7c5385dafc
Author: Roger Braun <roger@rogerbraun.net>
Date:   Mon, 29 Jan 2018 17:44:35 +0100

Fix incoming Pleroma CWs. Closes #96.

Diffstat:

Mlib/pleroma/web/ostatus/ostatus.ex3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex @@ -163,8 +163,7 @@ defmodule Pleroma.Web.OStatus do Get the cw that mastodon uses. """ def get_cw(entry) do - with scope when not is_nil(scope) <- string_from_xpath("//mastodon:scope", entry), - cw when not is_nil(cw) <- string_from_xpath("/*/summary", entry) do + with cw when not is_nil(cw) <- string_from_xpath("/*/summary", entry) do cw else _e -> nil end