I have done this accidentally a lot but if you make an error like this

This is a sentence.be happy about another sentence.

...at least in my lemmy client it automatically becomes a link.

I am not confident this is an issue but also I have noticed it and wanted to ask.

all 7 comments

sorted by: hot top controversial new old
[–] 5 points 6 days ago*

I wish the default Lemmy client wouldn’t interpret text as a URL so aggressively. The workaround is to preface the period with a backslash, like so: sentence\.be

Relatedly, when I post raw links, I sandwich them in < & >, because sometimes the client won’t interpret the text aggressively enough such that some of the (usually long) URL fails to be included. The angle brackets don’t get rendered. Example: https://github.com/lemmynet/lemmy-markdown-it-plugins

  • source
  • [–] 3 points 5 days ago (1 child)

    Its a feature of the markdown library we're using in lemmy-ui (markdown-it) called linkify.

    IMO the benefits of it outweigh the negatives. Its nice to be able to just type hexbear.net or something without having to add the https:// every time.

  • source
  • hideshow 1 child comment
  • [–] 2 points 6 days ago (2 children)

    Not an issue, the client has to recognize possible links.

    As the other comment mentioned, you can edit the text to fix grammar errors.

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 6 days ago* (last edited 6 days ago) (1 child)

    My point is couldn't someone exploit that with a website that has a url matching a common grammatical error of this type?

    You could put the chicken before the egg too by making a bunch of bot comments hat appear plausible except for errors like that and then actually launch the website right?

    If I "accidentally" link to that hostile website by making a totally normal "grammatical error" how do you establish intent?

    From a zoomed out database/admin level how do you quickly tell the difference between the two in bulk amounts of posts/comments you can't possibly search all the way through by hand...?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 6 days ago*

    you can just edit the post. it's not a problem

  • source