From 64e51c2cfa3e6da0f4998bab5358646cba8f29fa Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 29 Jan 2018 17:44:35 +0100 Subject: [PATCH] Fix incoming Pleroma CWs. Closes #96. --- lib/pleroma/web/ostatus/ostatus.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex index e65cab3ed..c35ba42be 100644 --- 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 -- 2.45.2