aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/formatter.ex
AgeCommit message (Collapse)Author
2018-10-18lib/pleroma/html.ex: Use macros for valid_schemes, change config for schemesHaelwenn (lanodan) Monnier
2018-10-17formatter: fix matching osada usersWilliam Pitcock
2018-10-05formatter: use Pleroma.HTML module instead of HtmlSanitizeEx directlyWilliam Pitcock
2018-10-05Revert "Merge branch 'revert-a26d5e6b' into 'develop'"William Pitcock
This reverts commit d31bbb1cfe04ca6073a322bcf77239e7d4b79839, reversing changes made to 340ab3cb9068d444b77213e07beb8c2c3ca128b9.
2018-09-28formatter: Stop using phoenix HTML and format it ourselvesHaelwenn (lanodan) Monnier
* 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
2018-09-10everywhere: use Pleroma.HTML module instead of HtmlSanitizeEx directlyWilliam Pitcock
2018-09-03Merge branch 'nil-bio-emojis' into 'develop'kaniini
add nil clause for Formatter.get_emoji/1 to return an empty result Closes #274 See merge request pleroma/pleroma!315
2018-09-02sloop around get_emoji/1 to check is_binary and have a fallthroughThurloat
default that returns empty
2018-09-02formatter: don't add XSS emojiWilliam Pitcock
2018-08-31add nil clause for Formatter.get_emoji/1 to return an empty resultThurloat
2018-08-31Revert "Merge branch 'feature/rich-text' into 'develop'"lambda
This reverts merge request !309
2018-08-31common api: add support for formatting messages outside of twitter-style ↵William Pitcock
plain text
2018-08-24formatter: adjust regexp captures to match local users with single character ↵William Pitcock
nicknames (closes #163)
2018-08-16Merge branch 'dev-lanodan-url-regex' into 'develop'kaniini
lib/pleroma/formatter.ex: Fix URL regex Closes #127 See merge request pleroma/pleroma!69
2018-08-05formatter: preserve case of hashtagsWilliam Pitcock
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.
2018-08-01Allow additionnal schemes in the configHaelwenn (lanodan) Monnier
2018-07-30[Pleroma.Formatter]: Add support for non-HTTP schemes in URIsHaelwenn (lanodan) Monnier
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
2018-06-30Fix auto-shortcode emojiJorty
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.
2018-05-27run mix formatWilliam Pitcock
2018-05-27formatter: use class='mention' on links to user profilesWilliam Pitcock
helps mastodon frontend and apps have better context: https://mastodon.social/users/Gargron/statuses/100101267352899379
2018-05-19Support Undo like activities (Fix #139)Thog
2018-05-19Fix linking problem.lain
2018-04-22Small cleanup.lain
2018-04-21Formatter: Use proper escaping for links.lain
2018-04-06Accept port number in urls.lain
2018-04-04Handle + in links.lain
2018-04-03Use user url in mention if we have it.lain
2018-03-30Format the code.lain
2018-03-28Don't go through all available emoji.lain
object carry their emoji information.
2018-03-27Include the '#' symbol into the link itselfFrancis Dinh
2018-03-24Fix hashtags.lain
2018-03-23Strip html from emoji stuff.lain
2018-01-31Split emoji to default and custom.eal
2017-12-20Merge branch 'media-proxy' into 'develop'lambda
Media proxy See merge request pleroma/pleroma!34
2017-12-19Fix timelines in subway tooter.Lain Iwakura
2017-12-18MastoAPI: Fix always-sensitive bugs.Lain Iwakura
2017-12-12proxy emojishref
(i fix emojos better than gargon but sshhhhh)
2017-12-07Allow parentheses in links.eal
2017-12-07Fix HTML escape breaking some links.eal
2017-11-18Add #nsfw tag if sensitive content bit is seteal
2017-11-07Merge branch 'mastodon-emoji-endpoint' into 'develop'lambda
Add mastodon API endpoint for custom emoji. See merge request pleroma/pleroma!8
2017-11-07Add mastodon API endpoint for custom emoji.eal
2017-11-07Linkify fixes.Roger Braun
2017-10-19Add an API endpoint for emoji.eal
2017-09-17Prefer post-specific emoji.Roger Braun
2017-09-16Make emoji configurable in files.Roger Braun
2017-09-16Apply incoming custom emoji.Roger Braun
2017-09-16Federate emoji out.Roger Braun
2017-09-16Small emoji refactor.Roger Braun
2017-08-18Merge branch 'patch-1' into 'develop'lambadalambda
Fix finmoji title attribute. See merge request !23