Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Cerulean)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. On Tags (including Hash-Tags) in ActivityPub.

On Tags (including Hash-Tags) in ActivityPub.

Pianificato Fissato Bloccato Spostato Technical Discussion
activitypubactivitystreamsfedidevhashtaghashtagstagtags
7 Post 4 Autori 0 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • PiΓΉ Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione Γ¨ stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • reiver@mastodon.socialundefined Questo utente Γ¨ esterno a questo forum
    reiver@mastodon.socialundefined Questo utente Γ¨ esterno a questo forum
    reiver@mastodon.social
    scritto su ultima modifica di
    #1

    On Tags (including Hash-Tags) in ActivityPub.

    1/

    I think new developers coming to ActivityPub want to write something like:

    "tag": ["apple", "banana", "cherry"]

    It is unfortunate that that isn't valid ActivityPub. But, that it must instead be:

    "tag": [
    {
    "type": "Hashtag",
    "name": "#apple"
    },
    {
    "type": "Hashtag",
    "name": "#banana"
    },
    {
    "type": "Hashtag",
    "name": "#cherry"
    }
    ]

    ...

    #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

    reiver@mastodon.socialundefined toddsundsted@epiktistes.comundefined evan@activitypub.spaceundefined julian@activitypub.spaceundefined 4 Risposte Ultima Risposta
    1
    • reiver@mastodon.socialundefined reiver@mastodon.social

      On Tags (including Hash-Tags) in ActivityPub.

      1/

      I think new developers coming to ActivityPub want to write something like:

      "tag": ["apple", "banana", "cherry"]

      It is unfortunate that that isn't valid ActivityPub. But, that it must instead be:

      "tag": [
      {
      "type": "Hashtag",
      "name": "#apple"
      },
      {
      "type": "Hashtag",
      "name": "#banana"
      },
      {
      "type": "Hashtag",
      "name": "#cherry"
      }
      ]

      ...

      #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

      reiver@mastodon.socialundefined Questo utente Γ¨ esterno a questo forum
      reiver@mastodon.socialundefined Questo utente Γ¨ esterno a questo forum
      reiver@mastodon.social
      scritto su ultima modifica di
      #2

      On Tags (including Hash-Tags) in ActivityPub.

      2/

      A new version of ActivityPub could extend the type of "tag" from:

      Object | Link

      to:

      Object | Link | xsd:string

      And that would make the following valid ActivityPub:

      "tag": ["apple", "banana", "cherry"]

      Of course, it would have to be specified how to interpret this. (Ex: as "type":"Hashtag", or whatever.)

      #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

      1 Risposta Ultima Risposta
      1
      • reiver@mastodon.socialundefined reiver@mastodon.social

        On Tags (including Hash-Tags) in ActivityPub.

        1/

        I think new developers coming to ActivityPub want to write something like:

        "tag": ["apple", "banana", "cherry"]

        It is unfortunate that that isn't valid ActivityPub. But, that it must instead be:

        "tag": [
        {
        "type": "Hashtag",
        "name": "#apple"
        },
        {
        "type": "Hashtag",
        "name": "#banana"
        },
        {
        "type": "Hashtag",
        "name": "#cherry"
        }
        ]

        ...

        #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

        toddsundsted@epiktistes.comundefined Questo utente Γ¨ esterno a questo forum
        toddsundsted@epiktistes.comundefined Questo utente Γ¨ esterno a questo forum
        toddsundsted@epiktistes.com
        scritto su ultima modifica di
        #3

        @reiver i don't mind type but the leading hash always feels redundant

        julian@activitypub.spaceundefined 1 Risposta Ultima Risposta
        0
        • reiver@mastodon.socialundefined reiver@mastodon.social

          On Tags (including Hash-Tags) in ActivityPub.

          1/

          I think new developers coming to ActivityPub want to write something like:

          "tag": ["apple", "banana", "cherry"]

          It is unfortunate that that isn't valid ActivityPub. But, that it must instead be:

          "tag": [
          {
          "type": "Hashtag",
          "name": "#apple"
          },
          {
          "type": "Hashtag",
          "name": "#banana"
          },
          {
          "type": "Hashtag",
          "name": "#cherry"
          }
          ]

          ...

          #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

          evan@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
          evan@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
          evan@activitypub.space
          scritto su ultima modifica di
          #4

          There's a definition for Hashtag here:

          https://swicg.github.io/miscellany/#Hashtag

          1 Risposta Ultima Risposta
          0
          • reiver@mastodon.socialundefined reiver@mastodon.social

            On Tags (including Hash-Tags) in ActivityPub.

            1/

            I think new developers coming to ActivityPub want to write something like:

            "tag": ["apple", "banana", "cherry"]

            It is unfortunate that that isn't valid ActivityPub. But, that it must instead be:

            "tag": [
            {
            "type": "Hashtag",
            "name": "#apple"
            },
            {
            "type": "Hashtag",
            "name": "#banana"
            },
            {
            "type": "Hashtag",
            "name": "#cherry"
            }
            ]

            ...

            #ActivityPub #ActivityStreams #FediDev #HashTag #HashTags #Tag #Tags

            julian@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
            julian@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
            julian@activitypub.space
            scritto su ultima modifica di
            #5

            @reiver@mastodon.social hmm, I don't much mind the "type": "Hashtag" bit. Additional specificity is helpful in the long-run I think.

            For example, tag contains hashtags, but it also contains mentions, "type": "Mention", so that actually makes sense.

            Additional stuff that falls under the rather general name "tag" could also fit. Tagging a location, tagging an Event, etc.

            This might also be what @evan was talking about, I didn't click through his link yet <img class="not-responsive emoji" src="https://activitypub.space/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61c.png?v=f187f9278b7" title=":stuck_out_tongue_winking_eye:" />

            1 Risposta Ultima Risposta
            0
            • toddsundsted@epiktistes.comundefined toddsundsted@epiktistes.com

              @reiver i don't mind type but the leading hash always feels redundant

              julian@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
              julian@activitypub.spaceundefined Questo utente Γ¨ esterno a questo forum
              julian@activitypub.space
              scritto su ultima modifica di
              #6

              > @toddsundsted@epiktistes.com said:
              >
              > <p><a href="/user/reiver%40mastodon.social" rel="tag">@reiver</a> i don't mind <code>type</code> but the leading hash always feels redundant</p>

              haha don't worry, it's optional.

              And by optional, I mean there's no specification about it, and so it's de facto part of it because Mastodon does it, but importantly, Peertube doesn't!

              So you can really just do whatever you want. Omit the #, I think Mastodon and most other software handles it fine.

              1 Risposta Ultima Risposta
              0
              • toddsundsted@epiktistes.comundefined Questo utente Γ¨ esterno a questo forum
                toddsundsted@epiktistes.comundefined Questo utente Γ¨ esterno a questo forum
                toddsundsted@epiktistes.com
                scritto su ultima modifica di
                #7

                @julian @reiver soooo many edge cases! πŸ˜€

                1 Risposta Ultima Risposta
                0

                Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunitΓ .

                Con il tuo contributo, questo post potrebbe essere ancora migliore πŸ’—

                Registrati Accedi
                Rispondi
                • Risposta alla discussione
                Effettua l'accesso per rispondere
                • Da Vecchi a Nuovi
                • Da Nuovi a Vecchi
                • PiΓΉ Voti


                Feed RSS
                On Tags (including Hash-Tags) in ActivityPub.
                @pierobosio@soc.bosio.info
                V4.10.1 Contributors
                • Accedi

                • Accedi o registrati per effettuare la ricerca.
                • Primo post
                  Ultimo post