aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/formatter.ex
AgeCommit message (Collapse)Author
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
2017-08-14Use unicode regex in mentions and links.Roger Braun
2017-07-09Fix finmoji title attribute.エーロ
2017-06-19Add finmoji.Roger Braun
2017-06-18Downcase tags coming in through the TwAPI.Roger Braun
2017-06-18Slightly better html link regex.Roger Braun
2017-06-14Move mention parsing to Formatter module.Roger Braun
2017-05-17Add Formatter.Roger Braun