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
  • 0 Votes
    1 Posts
    10 Views
    The big feature in release v3.2.2 of Ktistec is pinned posts with support for the Mastodon Featured Posts collection. Federation works both ways—pin a post on Ktistec and it will show up as a pinned post on Mastodon and vice versa. When you refresh an actor profile, Ktistec also fetches and updates the actor's pinned posts. This is another small step in the direction of supporting all features that Mastodon-compatible client applications expect to access via the API. It's also useful in its own right. The other major feature, which I posted a short video demonstrating here, is X-Ray Mode. X-Ray Mode is a developer and power-user tool for inspecting ActivityPub JSON-LD representations of actors, objects, and other content. Pressing Ctrl+Shift+X on any page displays the data behind the page—like an x-ray. You can:Cached Version: View the local JSON-LD representation stored in the Ktistec databaseRemote Version: Fetch and view the original JSON-LD representation from the source serverNavigation: Click on any ActivityPub IRI to navigate to that objectHistory: Use Alt+Left and Alt+Right to navigate through your viewing historyThis feature is useful for debugging federation issues, understanding ActivityPub structures, and verifying how content is stored and represented.Here's the full changelog for the release:AddedSupport for pinned posts and the Mastodon "featured posts" collection.X-Ray Mode for viewing and navigating JSON-LD resource (actor, object, etc.) representations.Back links on thread pages for easier navigation. (fixes #1)License page for LibreJS compliance. (fixes #127)Highlighting of recently fetched hashtagged posts.ChangedImproved presentation of audio and video media.Refactored theming/styling implementation.The next release will focus on smaller features and bug fixes.Enjoy!#ktistec #crystallang #activitypub #fediverse
  • 0 Votes
    1 Posts
    9 Views
    Open vs. Closed: The Fight for a New InternetThe Story Behind — A federated internet is forming. It's built on open protocols like ActivityPub & connects services like Mastodon, Threads, Pixelfed, Tumblr, Wordpress and more into a connected network known as the fediverse. And everyone from tech enthusiasts to Mark Zuckerberg and Jack Dorsey seem to want in.📺 https://www.youtube.com/watch?v=R3ptZ1W-FRA#internet #history #openvsclosed #web #activitypub #mastodon #threads #video #yt #pixelfed #tumblr #wordpress
  • 0 Votes
    1 Posts
    13 Views
    Grandiose day! However I haven’t read the book yet thou’. I spent my evening today building a automation by forking Tinker hack Blusky integration for running playlist etc. I am halfway there but when I run tested it – the last block doesn’t seem to work so I’ve contacted them about it. I hope soon to get help. This year I did lot of techie projects for myself like vibe coding built ways for me after taking course on ai and then vibecoding snake game and all of that. Later, doing html/css course to understand the basics and loving it all and then jamming up with neocities more. This year I also got excited with Nothing community project challenge – and built a marketing plan even the date was done and all. As I got to know late – being so inspired by the brand I went ahead and did something cool too. Nothing has cool software and hardware. The UI is cool as they say it. Got back to the ropes of smartphones as I grabbed Vivo iQOO Z10X as my daily driver – as they call it! I’ve since loved watching tech videos alot. I do love tech. I am not very much diving into fitness gadgets as of yet. As that would just tumble me down of anxiety passage I find.Well, the Founder of Mastodon is giving the next baton to new guy. Felix! Also, Eugen did a wonderful job with Mastodon. I saw his interview on YouTube while dinnering my way up through the day. I also read how a 101 year old Barista has been serving since WWII – that was the good news over bsky this morning. Also one 87 year old lady did something cool – which I don’t recall. You know we don’t care much to remember good news as we keep bad news itched in our brain for like whole time and all. Bad news is impactful is it? It creates fear and then that becomes memorable all of a sudden. Ah!
  • 0 Votes
    2 Posts
    21 Views
    @JohannesStarke @pfefferle@notiz.blog 🫣