aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/twitter_api/utils.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/twitter_api/utils.ex b/lib/pleroma/web/twitter_api/utils.ex
index 7f305c863..f02c8ad6d 100644
--- a/lib/pleroma/web/twitter_api/utils.ex
+++ b/lib/pleroma/web/twitter_api/utils.ex
@@ -44,10 +44,13 @@ defmodule Pleroma.Web.TwitterAPI.Utils do
end)
end
+ def wrap_in_p(text), do: "<p>#{text}</p>"
+
def make_content_html(status, mentions, attachments) do
status
|> format_input(mentions)
|> add_attachments(attachments)
+ |> wrap_in_p
end
def make_context(%Activity{data: %{"context" => context}}), do: context