From 1b67a597955b87ff792d50bed913b0af59f14edc Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 10 May 2017 19:29:25 +0200 Subject: Repair retweets. --- lib/pleroma/web/ostatus/ostatus.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex index b19f0172a..4fb647a39 100644 --- a/lib/pleroma/web/ostatus/ostatus.ex +++ b/lib/pleroma/web/ostatus/ostatus.ex @@ -120,10 +120,10 @@ defmodule Pleroma.Web.OStatus do end def get_content(entry) do - base_content = string_from_xpath("/entry/content", entry) + base_content = string_from_xpath("//content", entry) with scope when not is_nil(scope) <- string_from_xpath("//mastodon:scope", entry), - cw when not is_nil(cw) <- string_from_xpath("/entry/summary", entry) do + cw when not is_nil(cw) <- string_from_xpath("//summary", entry) do "#{cw}
#{base_content}" else _e -> base_content end -- cgit v1.2.3