reddit-moderator-toolbox icon indicating copy to clipboard operation
reddit-moderator-toolbox copied to clipboard

Expand support for making links clickable in ban notes

Open dequeued0 opened this issue 4 years ago • 4 comments
trafficstars

In new modmail, it would be great if more stuff was "linkified". In particular:

  1. "http" links - example: http://redd.it/l9b4wi
  2. /r/subreddit links - examples: /r/toolbox/comments/l9b4wi/, /r/toolbox/comments/l9b4wi, /r/toolbox/comments/l9b4wi/release_v550_witty_wildebeest/glh1yh5/, and /r/toolbox/wiki/index
  3. Links missing the "https://" part, especially for Reddit links - examples: redd.it/l9b4wi, example.com, www.example.com, example.com/stuff.
  4. /u/ mentions - example: u/username or /u/username

Thanks!

dequeued0 avatar Mar 24 '21 19:03 dequeued0

Looks like this is (mostly) handled by modmail itself now, except for links with neither http(s):// nor www. at the beginning of the link, which I think is about as much as we'd want to implement anyway. Closing.

image

eritbh avatar Nov 19 '21 18:11 eritbh

Reopend the issue as it is about in ban notes in the sidebar ;)

creesch avatar Nov 19 '21 18:11 creesch

Ban notes in the sidebar work fine for me, unless I'm looking at something different. https://github.com/toolbox-team/reddit-moderator-toolbox/blob/4d8d2a497347d2cd4c56f571175b91e4478dcb86/extension/data/modules/newmodmailpro.js#L75-L91

dequeues avatar Dec 31 '21 21:12 dequeues

The word more is what you are missing ;)

creesch avatar Dec 31 '21 22:12 creesch