forked from mirrors/akkoma
Proper info.
This commit is contained in:
parent
ae6e3cb981
commit
9f45e33ae8
1 changed files with 7 additions and 2 deletions
|
@ -50,8 +50,13 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
|
||||||
end
|
end
|
||||||
|
|
||||||
def info(text) do
|
def info(text) do
|
||||||
text = String.replace(text, ~r/[\t\r\n]/, " ")
|
text = String.replace(text, ~r/[\t\n]/, " ")
|
||||||
"#{text}\tfake\(NULL)\t0\r\n"
|
String.split(text, "\r")
|
||||||
|
|> Enum.map(fn (text) ->
|
||||||
|
"i#{text}\tfake\(NULL)\t0\r\n"
|
||||||
|
|> IO.inspect()
|
||||||
|
end)
|
||||||
|
|> Enum.join("")
|
||||||
end
|
end
|
||||||
|
|
||||||
def link(name, selector, type \\ 1) do
|
def link(name, selector, type \\ 1) do
|
||||||
|
|
Loading…
Reference in a new issue