projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add href to in-reply-to.
[akkoma]
/
lib
/
pleroma
/
web
/
twitter_api
/
utils.ex
diff --git
a/lib/pleroma/web/twitter_api/utils.ex
b/lib/pleroma/web/twitter_api/utils.ex
index 7f305c863a9ab6fbdee311fed07adfae66818387..2c3507dfbd6936158b29650c9edf25164fa81e3b 100644
(file)
--- a/
lib/pleroma/web/twitter_api/utils.ex
+++ b/
lib/pleroma/web/twitter_api/utils.ex
@@
-15,13
+15,13
@@
defmodule Pleroma.Web.TwitterAPI.Utils do
"<a href=\"#{URI.encode(href)}\" class='attachment'>#{Path.basename(href)}</a>"
_ -> ""
end)
"<a href=\"#{URI.encode(href)}\" class='attachment'>#{Path.basename(href)}</a>"
_ -> ""
end)
- Enum.join([text | attachment_text], "<br
/
>\n")
+ Enum.join([text | attachment_text], "<br>\n")
end
def format_input(text, mentions) do
HtmlSanitizeEx.strip_tags(text)
|> Formatter.linkify
end
def format_input(text, mentions) do
HtmlSanitizeEx.strip_tags(text)
|> Formatter.linkify
- |> String.replace("\n", "<br
/
>\n")
+ |> String.replace("\n", "<br>\n")
|> add_user_links(mentions)
end
|> add_user_links(mentions)
end