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. Fediverso
  4. Today I discovered an interesting inconsistency in Activity Streams specs while investigating [a Fedify issue].

Today I discovered an interesting inconsistency in Activity Streams specs while investigating [a Fedify issue].

Pianificato Fissato Bloccato Spostato Fediverso
fedifyfedidevactivitypubspecificationsactivitystreams
2 Post 2 Autori 36 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.
  • hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
    hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
    hongminhee@hollo.social
    scritto su ultima modifica di
    #1

    Today I discovered an interesting inconsistency in Activity Streams specs while investigating a Fedify issue.

    The question: How should we interpret URLs like "icon": "https://example.com/avatar.png"?

    JSON-LD context (https://www.w3.org/ns/activitystreams): @type: "@id" → “This is an IRI reference, dereference it to fetch an ActivityStreams object.”

    Activity Streams Primer: “assume that a bare string is the href of a Link object, not an id” (no dereferencing)

    Result: JSON-LD processor-based implementations try to parse PNG files as JSON and fail.

    Turns out w3c/activitystreams#595 already discusses the same issue for href properties. I added a note that icon, image, etc. have the same problem.

    Once again reminded of how tricky spec work can be…

    #ActivityPub #Fedify #ActivityStreams #fedidev #specifications

    evan@cosocial.caundefined 1 Risposta Ultima Risposta
    0
    • hongminhee@hollo.socialundefined hongminhee@hollo.social

      Today I discovered an interesting inconsistency in Activity Streams specs while investigating a Fedify issue.

      The question: How should we interpret URLs like "icon": "https://example.com/avatar.png"?

      JSON-LD context (https://www.w3.org/ns/activitystreams): @type: "@id" → “This is an IRI reference, dereference it to fetch an ActivityStreams object.”

      Activity Streams Primer: “assume that a bare string is the href of a Link object, not an id” (no dereferencing)

      Result: JSON-LD processor-based implementations try to parse PNG files as JSON and fail.

      Turns out w3c/activitystreams#595 already discusses the same issue for href properties. I added a note that icon, image, etc. have the same problem.

      Once again reminded of how tricky spec work can be…

      #ActivityPub #Fedify #ActivityStreams #fedidev #specifications

      evan@cosocial.caundefined Questo utente è esterno a questo forum
      evan@cosocial.caundefined Questo utente è esterno a questo forum
      evan@cosocial.ca
      scritto su ultima modifica di
      #2

      @hongminhee It's a place where our loosey goosey style goes into nondeterminism. We should tighten it up in the next version. My main answer would be: publishers, don't do that.

      1 Risposta Ultima Risposta
      0
      • pieroundefined piero ha condiviso questa discussione su

      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
      Today I discovered an interesting inconsistency in Activity Streams specs while investigating [a Fedify issue].
      @pierobosio@soc.bosio.info
      V4.10.1 Contributors
      • Accedi

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