mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-04 23:53:11 +00:00
Merge branch 'bugfix/gopher-empty-lines' into 'develop'
lib/pleroma/gopher/server.ex: Fix errorneous empty lines See merge request pleroma/pleroma!270
This commit is contained in:
commit
ae9c4983d7
|
@ -77,14 +77,14 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
|
||||||
|
|
||||||
link("Post ##{activity.id} by #{user.nickname}", "/notices/#{activity.id}") <>
|
link("Post ##{activity.id} by #{user.nickname}", "/notices/#{activity.id}") <>
|
||||||
info("#{like_count} likes, #{announcement_count} repeats") <>
|
info("#{like_count} likes, #{announcement_count} repeats") <>
|
||||||
"\r\n" <>
|
"i\tfake\t(NULL)\t0\r\n" <>
|
||||||
info(
|
info(
|
||||||
HtmlSanitizeEx.strip_tags(
|
HtmlSanitizeEx.strip_tags(
|
||||||
String.replace(activity.data["object"]["content"], "<br>", "\r")
|
String.replace(activity.data["object"]["content"], "<br>", "\r")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
|> Enum.join("\r\n")
|
|> Enum.join("i\tfake\t(NULL)\t0\r\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
def response("") do
|
def response("") do
|
||||||
|
|
Loading…
Reference in a new issue