Haelwenn (lanodan) Monnier
369c03834c
formatter: Use user.uri instead of user.source_data.uri
4 лет назад
rinpatch
d067eaa7b3
formatter.ex: Use Phoenix.HTML for mention/hashtag generation
Unlike concatenating strings, this makes sure everything is escaped.
Tests had to be changed because Phoenix.HTML runs attributes through
Enum.sort before generation for whatever reason.
4 лет назад
Haelwenn (lanodan) Monnier
6da6540036
Bump copyright years of files changed after 2020-01-07
Done via the following command:
git diff fcd5dd259a
--stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
4 лет назад
lain
51283bf996
Formatter: Add a test for domain / username clashes
4 лет назад
Ivan Tashkinov
10ff01acd9
[ #1304 ] Moved all non-mutes / non-blocks fields from User.Info to User. WIP.
4 лет назад
Egor Kislitsyn
95c948110c
Add `rel="ugc"` to hashtags and mentions
4 лет назад
Egor Kislitsyn
cf3041220a
Add support for `rel="ugc"`
4 лет назад
Haelwenn (lanodan) Monnier
447514dfa2
Bump copyright years of files changed in 2019
Done via the following command:
git diff 1e6c102bfc
--stat --name-only | cat - | xargs sed -i 's/2017-2018 Pleroma Authors/2017-2019 Pleroma Authors/'
4 лет назад
Maksim Pechnikov
d8098d142a
added Emoji.Formatter
4 лет назад
Maksim Pechnikov
d7808b5db4
added code\path fields without html tags in ets
4 лет назад
Sergey Suprunenko
bbea5691da
Mention all people in the beginning of DM
5 лет назад
Sergey Suprunenko
9134848170
Do not truncate DM when it contains newlines and safe_dm_mentions is set to true
5 лет назад
Alexander Strizhakov
7ed682213f
Fix/902 random compile failing
5 лет назад
Haelwenn (lanodan) Monnier
85b5c60694
Pleroma.Formatter: width/height to class=emoji
5 лет назад
Alex S
f11e7037c2
test fixes
5 лет назад
Ekaterina Vaartis
aef3a3ca46
Fix tests that used finmoji
5 лет назад
Alex S
484162c187
test fix
5 лет назад
Alex S
17d3d05a71
code style
little fix
5 лет назад
Alex S
3601f03147
Adding tag to emoji ets table
changes in apis
5 лет назад
lain
8468f3f6d4
Add safe dm mode option.
5 лет назад
Egor
c3ac9424d2
AutoLinker
5 лет назад
Haelwenn (lanodan) Monnier
74579115a7
test: Change `lenght(…) == 0` to `Enum.empty?(…)`
5 лет назад
Ivan Tashkinov
65bb9b2fba
[ #491 ] Made full nicknames be preserved in user links text only in Bio.
5 лет назад
Ivan Tashkinov
2bfae25a1f
[ #491 ] Made user bio preserve full nicknames (nick@host).
5 лет назад
William Pitcock
85a5be6220
tests: fixup
5 лет назад
William Pitcock
3c08d229db
tests: add legal boilerplate
5 лет назад
Maksim
f1b93b5be7
[ #413 ] fix parse mentions
5 лет назад
Rin Toshaka
196d9c0fd0
Fix tests
5 лет назад
rinpatch
8a67677d77
Add test
5 лет назад
Maksim Pechnikov
baead4ea4b
fix markdown formatting
5 лет назад
href
7d9ddbe689
Allow underscores in usernames.
Fixes #429 .
5 лет назад
Vald
743a09132b
linting
5 лет назад
Vald
812b20d49f
resolved formatter_test failures
5 лет назад
Maksim Pechnikov
dd8aee332c
formatting the code
5 лет назад
Maksim Pechnikov
a9e4a97586
update test
5 лет назад
lain
2887f4ff1d
Fix formatter tests.
5 лет назад
William Pitcock
958c5e02e8
tests: add a testcase for matching osada users in the formatter
5 лет назад
Haelwenn (lanodan) Monnier
a3cffd3566
formatter: Stop using phoenix HTML and format it ourselves
* Pheonix has an extra scheme whitelist conflicting with ours
* Pheonix doesn’t seems to do URL encoding, just HTML encoding
Closes: https://git.pleroma.social/pleroma/pleroma/issues/307
5 лет назад
William Pitcock
834515fb51
formatter: don't add XSS emoji
5 лет назад
Thurloat
a9c0f395cb
add nil clause for Formatter.get_emoji/1 to return an empty result
5 лет назад
William Pitcock
a8bd120ea6
tests: formatting
5 лет назад
William Pitcock
14d1187702
test: add testcase for formatter issue #163
5 лет назад
Haelwenn (lanodan) Monnier
32a55e9695
[Pleroma.FormatterTest] Add test for XMPP link
6 лет назад
Haelwenn (lanodan) Monnier
1a2255ef7e
[Pleroma.FormatterTest]: .add_links: Add a space before the dot
A dot is legal in the url, even at the end, so I moved it for the test
6 лет назад
William Pitcock
f569b67cda
tests: update for html changes
6 лет назад
lain
df95118c81
Fix linking problem.
6 лет назад
lain
0c221943ef
Formatter: Use proper escaping for links.
6 лет назад
lain
60f92e406c
Accept port number in urls.
6 лет назад
lain
81600c94f4
Handle + in links.
6 лет назад
lain
806550c921
Use user url in mention if we have it.
6 лет назад