projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe1dcf0
)
Modify newlines.
author
lain
<lain@soykaf.club>
Sat, 31 Mar 2018 19:09:58 +0000
(21:09 +0200)
committer
lain
<lain@soykaf.club>
Sat, 31 Mar 2018 19:09:58 +0000
(21:09 +0200)
lib/pleroma/gopher/server.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/gopher/server.ex
b/lib/pleroma/gopher/server.ex
index ede99a7380b64010d9b4144235d49056e37a9e2a..bf87e51ec2a300efe46e4a1b8a9979ee88119ffe 100644
(file)
--- a/
lib/pleroma/gopher/server.ex
+++ b/
lib/pleroma/gopher/server.ex
@@
-82,7
+82,7
@@
defmodule Pleroma.Gopher.Server.ProtocolHandler do
link("Post ##{activity.id} by #{user.nickname}", "/notices/#{activity.id}") <>
info("#{like_count} likes, #{announcement_count} repeats") <>
- "\r\n" <> info(HtmlSanitizeEx.strip_tags(
activity.data["object"]["content"]
))
+ "\r\n" <> info(HtmlSanitizeEx.strip_tags(
String.replace(activity.data["object"]["content"], "<br>", "\n"
))
end)
|> Enum.join("\r\n")
end