Thurloat
4257f784bc
sloop around get_emoji/1 to check is_binary and have a fallthrough
...
default that returns empty
6 years ago
William Pitcock
834515fb51
formatter: don't add XSS emoji
6 years ago
Thurloat
a9c0f395cb
add nil clause for Formatter.get_emoji/1 to return an empty result
6 years ago
lambda
58539e1357
Revert "Merge branch 'feature/rich-text' into 'develop'"
...
This reverts merge request !309
6 years ago
William Pitcock
6aa65b68b8
common api: add support for formatting messages outside of twitter-style plain text
6 years ago
William Pitcock
3e10d13909
formatter: adjust regexp captures to match local users with single character nicknames ( closes #163 )
6 years ago
kaniini
183ccd1812
Merge branch 'dev-lanodan-url-regex' into 'develop'
...
lib/pleroma/formatter.ex: Fix URL regex
Closes #127
See merge request pleroma/pleroma!69
6 years ago
William Pitcock
0ee29994a5
formatter: preserve case of hashtags
...
when generating hashtag links, we used the casefolded version that we use in
the link URLs, instead of the original version.
accordingly, adjust the formatter to use the original text for the links, while
keeping the casefolded version for the URLs.
6 years ago
Haelwenn (lanodan) Monnier
d5091c3175
Allow additionnal schemes in the config
6 years ago
Haelwenn (lanodan) Monnier
3623504e5d
[Pleroma.Formatter]: Add support for non-HTTP schemes in URIs
...
The call to the regex in add_links is there just to be sure it’s a legal URI, it can be removed if you want to get more performance.
The URI Schemes list is sorted, but with http(s) at the start (in case it might make it faster for common links).
Closes: https://git.pleroma.social/pleroma/pleroma/issues/127
6 years ago
Jorty
748fff6544
Fix auto-shortcode emoji
...
Emoji were broken due to `Pleroma.Formatter` not knowing about the
auto-shortcode emoji. This moves that logic from
`Pleroma.Web.TwitterAPI.UtilController` to `Pleroma.Formatter`.
Additionally, it's now possible to specify multiple shortcode globs, and
the default globs were changed to `["/emoji/custom/**/*.png"]`, since
that's in the .gitignore and the files there would have to be shortcode
emoji anyway.
6 years ago
William Pitcock
d7eb2e1b65
run mix format
6 years ago
William Pitcock
a8df7fc690
formatter: use class='mention' on links to user profiles
...
helps mastodon frontend and apps have better context:
https://mastodon.social/users/Gargron/statuses/100101267352899379
6 years ago
Thog
6f39ecc41b
Support Undo like activities ( Fix #139 )
6 years ago
lain
df95118c81
Fix linking problem.
6 years ago
lain
0574df273c
Small cleanup.
7 years ago
lain
0c221943ef
Formatter: Use proper escaping for links.
7 years ago
lain
60f92e406c
Accept port number in urls.
7 years ago
lain
81600c94f4
Handle + in links.
7 years ago
lain
806550c921
Use user url in mention if we have it.
7 years ago
lain
4afbef39f4
Format the code.
7 years ago
lain
df8fc72491
Don't go through all available emoji.
...
object carry their emoji information.
7 years ago
Francis Dinh
61692c7efa
Include the '#' symbol into the link itself
7 years ago
lain
eb7ce61ca5
Fix hashtags.
7 years ago
lain
fbe9aa3506
Strip html from emoji stuff.
7 years ago
eal
ab8b9ababa
Split emoji to default and custom.
7 years ago
lambda
35ac549a99
Merge branch 'media-proxy' into 'develop'
...
Media proxy
See merge request pleroma/pleroma!34
7 years ago
Lain Iwakura
f1f79c0dca
Fix timelines in subway tooter.
7 years ago
Lain Iwakura
47887ac848
MastoAPI: Fix always-sensitive bugs.
7 years ago
href
f909aec050
proxy emojis
...
(i fix emojos better than gargon but sshhhhh)
7 years ago
eal
a3e68f0233
Allow parentheses in links.
7 years ago
eal
bf91e5659f
Fix HTML escape breaking some links.
7 years ago
eal
f53cdabcdf
Add #nsfw tag if sensitive content bit is set
7 years ago
lambda
be67db5547
Merge branch 'mastodon-emoji-endpoint' into 'develop'
...
Add mastodon API endpoint for custom emoji.
See merge request pleroma/pleroma!8
7 years ago
eal
c6210183e1
Add mastodon API endpoint for custom emoji.
7 years ago
Roger Braun
7da978f3f5
Linkify fixes.
7 years ago
eal
fe7804e42d
Add an API endpoint for emoji.
7 years ago
Roger Braun
fb46d6fbc4
Prefer post-specific emoji.
7 years ago
Roger Braun
7c82b82197
Make emoji configurable in files.
7 years ago
Roger Braun
959e993c7d
Apply incoming custom emoji.
7 years ago
Roger Braun
884006a9e9
Federate emoji out.
7 years ago
Roger Braun
79aeb219d8
Small emoji refactor.
7 years ago
lambadalambda
8004ee8ccf
Merge branch 'patch-1' into 'develop'
...
Fix finmoji title attribute.
See merge request !23
7 years ago
Roger Braun
2ab1d915e3
Use unicode regex in mentions and links.
7 years ago
エーロ
6c70980bff
Fix finmoji title attribute.
7 years ago
Roger Braun
66b4fee80e
Add finmoji.
7 years ago
Roger Braun
6cac8e3c8b
Downcase tags coming in through the TwAPI.
7 years ago
Roger Braun
a9bfbcae80
Slightly better html link regex.
7 years ago
Roger Braun
1af9c77736
Move mention parsing to Formatter module.
7 years ago
Roger Braun
dcfd494e97
Add Formatter.
7 years ago