Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Fediverse
  3. @julian Consider adding .mention class to mentions in HTML content.

@julian Consider adding .mention class to mentions in HTML content.

Scheduled Pinned Locked Moved Fediverse
10 Posts 4 Posters 18 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • silverpill@mitra.socialS This user is from outside of this forum
    silverpill@mitra.socialS This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    @julian Consider adding .mention class to mentions in HTML content. Some clients transform such links into internal links.

    julian@community.nodebb.orgJ rikudou@lemmings.worldR 2 Replies Last reply
    0
    • silverpill@mitra.socialS [email protected]

      @julian Consider adding .mention class to mentions in HTML content. Some clients transform such links into internal links.

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      @[email protected] ironically we do add that class in NodeBB, but we explicitly strip out all custom class names because there's no guarantee that recipients would know how to handle it.

      Since a .mention has no standardized meaning, I opted to remove it for federated content.

      Also mentions can be detected in content as they're explicitly defined in the payload.

      1 Reply Last reply
      0
      • bh4-tech@community.nodebb.orgB This user is from outside of this forum
        bh4-tech@community.nodebb.orgB This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        @julian Is Video support limited to just Peertube videos? Asking this because, a video post on threads renders properly on mastodon and calckey(misskey fork) but only the text is displayed and not the video on my nodeb instance running 4.1.0. The post is https://www.threads.net/@b4htech/post/DGmUEn7y76q?xmt=AQGz1bBLfaQf_DsxBxScCQa7LxwcwQD3CSh5bf7j8nU0fA

        Below attached are the screenshots of the above post on-
        1)mastodon.png mastodon

        2)calckey.png calckey

        3)mynodebb.png My nodebb instance https://ekk.app

        1 Reply Last reply
        0
        • julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          @bh4-tech might be a caching issue. Any chance you can restart your NodeBB and see if the link shows up?

          Right now the video player won't embed, but the minimum should be a link.

          1 Reply Last reply
          0
          • bh4-tech@community.nodebb.orgB This user is from outside of this forum
            bh4-tech@community.nodebb.orgB This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            Restart from admin panel or stop and start from cmd on server.

            julian@community.nodebb.orgJ 1 Reply Last reply
            0
            • bh4-tech@community.nodebb.orgB [email protected]

              Restart from admin panel or stop and start from cmd on server.

              julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.orgJ This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              @bh4-tech either

              1 Reply Last reply
              0
              • bh4-tech@community.nodebb.orgB This user is from outside of this forum
                bh4-tech@community.nodebb.orgB This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                Same thing, no video on restart.

                1 Reply Last reply
                0
                • bh4-tech@community.nodebb.orgB This user is from outside of this forum
                  bh4-tech@community.nodebb.orgB This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  @julian Restarting also did not change anything.
                  Also, noticed that if a post on mastodon, lemmy or threads has an image, it is shown beside the topic headline as a thumbnail but is not rendered below the actual text as an image. I guess that once this problem is fixed, videos(or video links) will also get rendered. The same behavior is observed on both community.nodebb.org as well as my nodebb instance. Attaching screenshots of both-
                  1)community.nodebb.org with a lemmy post nimn.png

                  2)nodebb instance with a mastodon postnime.png

                  1 Reply Last reply
                  0
                  • silverpill@mitra.socialS [email protected]

                    @julian Consider adding .mention class to mentions in HTML content. Some clients transform such links into internal links.

                    rikudou@lemmings.worldR This user is from outside of this forum
                    rikudou@lemmings.worldR This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    Well, depending on a class from a 3rd-party is not the best way to go about it. Anyway, the server should reconstruct the html and add the appropriate .mention class based on any existing Mention links from the ActivityPub object.

                    julian@community.nodebb.orgJ 1 Reply Last reply
                    0
                    • rikudou@lemmings.worldR [email protected]

                      Well, depending on a class from a 3rd-party is not the best way to go about it. Anyway, the server should reconstruct the html and add the appropriate .mention class based on any existing Mention links from the ActivityPub object.

                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.orgJ This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #10

                      @[email protected] that was my thinking as well.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups