Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
325c7c92
Commit
325c7c92
authored
Feb 11, 2020
by
rinpatch
Browse files
Make Floki use fast_html
parent
34cbe9f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/config.exs
View file @
325c7c92
...
...
@@ -737,6 +737,8 @@
config
:pleroma
,
:instances_favicons
,
enabled:
false
config
:floki
,
:html_parser
,
Floki
.
HTMLParser
.
FastHtml
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config
"
#{
Mix
.
env
()
}
.exs"
test/web/metadata/rel_me_test.exs
View file @
325c7c92
...
...
@@ -9,13 +9,11 @@ defmodule Pleroma.Web.Metadata.Providers.RelMeTest do
test
"it renders all links with rel='me' from user bio"
do
bio
=
~s(<a href="https://some-link.com">https://some-link.com</a> <a rel="me" href="https://another-link.com">https://another-link.com</a>
<link href="http://some.com"> <link rel="me" href="http://some3.com>")
~s(<a href="https://some-link.com">https://some-link.com</a> <a rel="me" href="https://another-link.com">https://another-link.com</a> <link href="http://some.com"> <link rel="me" href="http://some3.com">)
user
=
insert
(
:user
,
%{
bio:
bio
})
assert
RelMe
.
build_tags
(%{
user:
user
})
==
[
{
:link
,
[
rel:
"me"
,
href:
"http://some3.com
>
"
],
[]},
{
:link
,
[
rel:
"me"
,
href:
"http://some3.com"
],
[]},
{
:link
,
[
rel:
"me"
,
href:
"https://another-link.com"
],
[]}
]
end
...
...
Kristóf Marussy
@kris7t
mentioned in issue
#2067 (closed)
·
Aug 22, 2020
mentioned in issue
#2067 (closed)
mentioned in issue #2067
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment