Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Returning objects in a collection vs. IDs

Technical Discussion
27 6 189

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @helge

    >used by Mastodon

    They are changing it: https://github.com/mastodon/mastodon/pull/30354

    read more

  • I think the wrapping in <p> is just plain good practice because otherwise rendered content could be injected somewhere resulting in invalid HTML.

    Not that browsers ever reject bad HTML anyway heh</p>

    read more

  • @helge @reiver

    >Can you explain what goes on in mitra?

    When mediaType is text/markdown, the entire content is wrapped in a <p> tag. This was done for compatibility with PeerTube. I think <p> was needed to create a space between the title (name) and the content, since title is prepended to content in Mitra (also a compatibility hack -- for Mastodon API clients).

    read more

  • I'd generally discourage RFC7591 in decentralized systems due to the fact that it creates client sprawl (this is currently a problem with Mastodon's client registration mechanism, which is why we created CIMDs) — every client in RFC7591 is a distinct client, with its own client_id and client_secret, which can make client management interfaces difficult to implement (e.g., every time you login on a mobile device or SPA, you'll get a brand new client_id). CIMDs solve this by anchoring client metadata to a URI, and using that URI as the client_id.

    If you need to test clients using CIMDs in development, there is cimd-service however, it's currently targeting the AT Protocol ecosystem (so has a few specifics that at present there that would not necessarily make sense of ActivityPub)

    read more

  • Speaking of handling markdown. I created funfedi.dev Media Types a while ago (and just added it to the navigation). I lost interest when I saw that nobody properly handled the mediaType attribute of a note. Not that I know what I expected.

    Can you explain what goes on in mitra? When mediaType is text/markdown. It changes __bold__ to <p>__bold__</p>, otherwise no paragraph tags. I'm pretty sure, I was once told to use __ for bold and * for emphasize. So my markdown should be good.

    Full example ... input activity -> mitra api response

    Final note: I am not sure what I would want a proper data format to do. I find the solution of W3C ActivityPub (not W3C ActivityStreams) proposes of putting HTML in content and adding source with the original, from which the HTML was generated ok. Of course, this leaves the existence of the summary and name field superfluous.

    read more

  • @reiver@mastodon.social add in NodeBB as well. Markdown first, and probably HTML too, although it will probably be sanitized to death on the way out.

    read more

  • @mariusor that's too bad. All I have left is mussels, French fries, large-scale bureaucracy, and peeing statues.

    read more

  • @reiver uses Markdown by default too, but of course sends out HTML to the fediverse

    read more
Post suggeriti
  • Activity Pub

    General Discussion activitypub
    1
    0 Votes
    1 Posts
    10 Views
    Diese Website ist jetzt über das #ActivityPub Plugin mit dem Fediverse verbunden. Dieser Post ist ein Test, und gleichzeitig eine Beschreibung, was ich gemacht habe, damit ich mich mit meinem informelleren Mastodon-Account finden konnte.Ich habe zunächst mein Profil ein bisschen mit Beschreibung und Headerbild ausgeschmückt und dann das Plugin installiert. Dann habe ich einen Beitrag geschrieben und etwa 15 Minuten gewartet.Von meinem anderen Account aus habe ich den Beitrag gezielt gesucht und nicht gefunden. Auch eine direkte Suche nach @Jan hat nix gebracht.Dann bin ich erst mal schwimmen gegangen.Danach habe ich nochmal gesucht, immer noch nix. Ich habe dann einen Beitrag geschrieben und in dem einen Block eingefügt „Föderierte Antwort“ eingeführt. In dem Feld „Antwort auf diesen Beitrag“ habe ich die URL eines Posts meines anderen Mastodon-Profils eingeben und den Beitrag aktualisiert.Diese Antwort ist mir angezeigt worden, und ich konnte mir folgen!Jetzt bin ich mal gespannt, ob ich diesen Beitrag auch direkt in der Timeline meines Zweitprofils angezeigt wird.Es bleibt natürlich die Frage, wie ich die Auffindbarkeit von diesem Profil und den Beiträgen befördere, ohne so komische Tricks anzuwenden.Naja, der restliche Beitrag ist ein Test von allen AktivityPub-Spezifischen Textblöcken. Enjoy!
  • 0 Votes
    6 Posts
    17 Views
    Yeah, it's frustrating -- people have been asking for this since forever (well 2018 but close enough .There are some interesting perspectives from Claire on the challenges of adding this to Mastodon in a Github discussion in https://github.com/mastodon/mastodon/issues/7135#issuecomment-636767048@julian @miriamrobern
  • 0 Votes
    1 Posts
    18 Views
    I'm now on Loops as user spaceotter@loops.video The new app for this social media site is slated for release some time this week, maybe Halloween 🎃, or possibly in November. #loops #spaceotter #activitypub
  • 0 Votes
    26 Posts
    99 Views
    @julian that might be it, yeah. languages outside of javascript generally don't make a distinction between null and undefined, and even in javascript these are used inconsistently. for example localStorage.getItem will return null for a missing key. practically speaking, the "intentionally" distinction is a distinction without a difference in most processing contexts.