stadeus
  • Login
Show Navigation
  • Public

    • Groups
    • Recent tags

Conversation

Notices

  1. Tantek ()'s status on Sunday, 10-Mar-2024 10:55:00 EDT Tantek Tantek
    Updated the auto-linking code¹ on my website last Sunday to handle a few more @-mention use-cases.

    In particular:
    * @-domains with dashes/hyphens like @sonja-weckenmann.de
    * @-@ with (some) Unicode alphabetic characters like @briansuda@loðfíll.is
    * @-domain-and-path for indicating @-mentions of silo profiles that don’t support @-@ syntax, like @flickr.com/people/tantek or @instagram.com/tantek

    I also dropped auto-linking of URLs with user:password "userinfo", since they’ve been long abandoned and effectively deprecated because there’s fairly wide agreement that such "basic HTTP auth"^2 was poorly designed and should not be used (and thus should not be linked).

    If you’re curious you can take a look at https://tantek.com/cassis.js, which has updated functions:
    * auto_link_re() — regular expression to recognize URLs, @-mentions, @-@, and footnotes to link
    * auto_link() — specifically the code to recognize different kinds of @-@ and @-mentions and link them properly to profiles, domains, and paths.

    This code is only live on my website (testing in production³ as it were) for now, and you’re welcome to copy/paste to experiment with it. I plan to test it more over the coming weeks (or so) and when I feel it is sufficiently well tested, will update it on GitHub⁴ as well.

    With this additional auto-linking functionality, I feel I have a fairly complete implementation of how to auto-link various URLs and @-mentions, and plan to write that up at least as a minimal “list of use-cases and how they should work” auto-linking specification.

    This (blog post) is my contribution to today’s #IndieWebCamp Brighton⁵ #hackday!

    This was originally a project I wanted to complete during IndieWebCamp Nuremberg last October, however I was pre-occupied at the time with fixing other things.⁶

    #autolink #atmention #atmentions #atat #atatmention

    This is post 12 of #100PostsOfIndieWeb. #100Posts

    ← https://tantek.com/2024/047/t1/indieweb-major-update-design
    → 🔮


    ¹ https://tantek.com/cassis.js
    ² https://en.wikipedia.org/wiki/Basic_access_authentication
    ³ https://indieweb.org/test_in_production
    ⁴ https://tantek.com/github/cassis
    ³ https://indieweb.org/2024/Brighton
    ⁴ https://tantek.com/2023/302/t1/indiewebcamp-completed-projects
    about a year ago from tantek.com permalink
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    stadeus is a social network, courtesy of blaise.ca. It runs on GNU social, version 1.2.0-beta4, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All stadeus content and data are available under the Creative Commons Attribution 3.0 license.

    Switch to desktop site layout.