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

Deleting a post vs deleting an entire comment tree

Technical Discussion
25 12 0
  • This is slightly different from OP as you are talking about deleting a reply (ie Note) with children, while OP is about deleting a top-level post with children. Nevertheless both can be represented in the same way over federation.

    Just sending out an individual Delete for every Object. I like this option the least, but it is very easy to implement and needs no changes in other software to work.

    This would be terrible for performance when removing dozens or hundreds of comments at once. Rule of thumb should be one activity for one user action.

    Make the target of the Delete an array. I’m honestly 50/50 on whether this is actually spec compliant, it’s not clear to me that it isn’t;

    The problem with this is that some platforms might get the idea to delete multiple unrelated comments with a single activity, or even comments in different posts. Handling that would make the receiving logic unnecessarily complicated, and would also make it complicated to combine the modlog entries.

    Same as option 1, a new property like removeChildren;

    This is the simplest and best option.

    I do agree that with_replies, or similar, would be the easiest approach, but I don't think it is the most specific.

    The bool suggests that all replies to a given object are deleted. However, you do not know whether your idea of what the reply tree is matches that of the originating server (which replies are included, etc.?)

    Remove(Context), on the other hand does imply both that the container is deleted, and all of its replies, which are dereferenceable by resolving the context directly. It also has the benefit of being able to provide a pointer to where it was removed from, which is useful.

    So to me it's not just a matter of preference, but that there are additional benefits to Remove

    I will of course concede that it is more work to deliver Remove.

    cc thisismissem

  • @nutomic I solved this by having an the instance be an actor that is an intermediary for all operations. All activities get CC'ed to the followers of the user actor, and of the instance actor. (replace instance with community/group, whatever you use as an aggregate element for your implementation)

    This should cover all interested parties imho.

    The potential downside is that instances need to explicitly operate between themselves with follow operations (which conveniently also solves the problem of unwanted interactions with less savory corners of the fediverse).

    Like I said, a problem of addressing. :P

    I'm sure that approach works as well. This would have been worth discussing 4 or 5 years ago when I was just implementing federation in Lemmy for the first time. By now FEP-1b12 is already an established standard which is used by various platforms, and it would be completely unfeasible to replace it with something else.

  • I fail to see what the fundamental difference is. If you are unsure about the target with Delete/Object, you can also resolve the context of Object to figure that out. Anyway the instance where the Group is hosted is always the authority, so the state there is the correct one.

    Actually I would rather think of this from a different perspective, namely from the perspective of the mod who clicks the remove button. That would happen when a post is offtopic or violates the rules, and then the intent clearly is to remove all replies as they are not useful. It wouldnt make sense to leave up a single reply two levels deep just because it wasnt included in the context for some reason.

  • @julian This sounds like an implementation detail to me. Some fedi platforms delete a child object when its parent is deleted, others don't.

    If you want to make the removal of a subtree explicit, I'd recommend a Remove where object is an array (similar to what @mariusor suggested):

    Remove(object: Note[], target: Context)
    

    This also helps with migrating away from Announce(Delete). I saw your FEP draft, will provide more feedback once I read it in full.

    @rimu @nutomic @melroy @BentiGorlich

  • I'm sure that approach works as well. This would have been worth discussing 4 or 5 years ago when I was just implementing federation in Lemmy for the first time. By now FEP-1b12 is already an established standard which is used by various platforms, and it would be completely unfeasible to replace it with something else.

    @nutomic if you're implying that I should have spoken sooner, I'm pretty sure I did. I remember exchanging messages with both you and @dessalines when you started lemmy...

    I have no specific memory about this topic, but to my recollection lemmy federation was pushed as fait-accomplit at one point without me seeing any previous research on your guys part.


Gli ultimi otto messaggi ricevuti dalla Federazione
  • Hi all,

    I've recently had some questions about what tool to use for note taking during taskforce meetings, personally I've been using hedgedoc from social.coop, but it's a private instance and you need an invited account. I've also used hackmd in the past. I've seen other taskforces use Google Docs, and I think one even used CryptPad.

    Officially the W3C way of scribing meetings is via an IRC bot: https://www.w3.org/2006/tools/wiki/WebExBestPractices#Meeting_Record_(Minutes)

    However, this isn't necessarily the most approachable to many members of the Social Web CG.

    At the end of the day, the most important part is that taskforce leads capture meeting notes and preserve them, e.g., in the taskforce github repository on swicg or swicg/meetings. (I could also automate taskforce to swicg/meetings sync)

    I currently own the socialcg.org and swicg.org domains, and I'd be happy to spin up a hedgedoc server on a subdomain there that taskforce leads can use for creating and taking meeting notes. However, to do this I'd need to figure out some funding for it (not particularly a lot, but some amount of money — somewhere in the range of €60-180 a year, I'd guess).

    What tooling would you like to use for taking meeting notes? Would having a hedgedoc install for the CG be valuable?

    (I am also in the process of hosting the Activity Summary Bot on a VPS, which produces these emails to the mailing list weekly: https://lists.w3.org/Archives/Public/public-swicg/2025Oct/0028.html — it was running on github actions but kept failing there due to GitHub restrictions, so I've had a VPS on a server sponsored by one of the large fediverse hosts to replace GitHub Actions for more reliable delivery)

    Yours,
    Emelia

    read more

  • @nutomic if you're implying that I should have spoken sooner, I'm pretty sure I did. I remember exchanging messages with both you and @dessalines when you started lemmy...

    I have no specific memory about this topic, but to my recollection lemmy federation was pushed as fait-accomplit at one point without me seeing any previous research on your guys part.

    read more

  • @julian This sounds like an implementation detail to me. Some fedi platforms delete a child object when its parent is deleted, others don't.

    If you want to make the removal of a subtree explicit, I'd recommend a Remove where object is an array (similar to what @mariusor suggested):

    Remove(object: Note[], target: Context)

    This also helps with migrating away from Announce(Delete). I saw your FEP draft, will provide more feedback once I read it in full.

    @rimu @nutomic @melroy @BentiGorlich

    read more

  • I fail to see what the fundamental difference is. If you are unsure about the target with Delete/Object, you can also resolve the context of Object to figure that out. Anyway the instance where the Group is hosted is always the authority, so the state there is the correct one.

    Actually I would rather think of this from a different perspective, namely from the perspective of the mod who clicks the remove button. That would happen when a post is offtopic or violates the rules, and then the intent clearly is to remove all replies as they are not useful. It wouldnt make sense to leave up a single reply two levels deep just because it wasnt included in the context for some reason.

    read more

  • I'm sure that approach works as well. This would have been worth discussing 4 or 5 years ago when I was just implementing federation in Lemmy for the first time. By now FEP-1b12 is already an established standard which is used by various platforms, and it would be completely unfeasible to replace it with something else.

    read more

  • I do agree that with_replies, or similar, would be the easiest approach, but I don't think it is the most specific.

    The bool suggests that all replies to a given object are deleted. However, you do not know whether your idea of what the reply tree is matches that of the originating server (which replies are included, etc.?)

    Remove(Context), on the other hand does imply both that the container is deleted, and all of its replies, which are dereferenceable by resolving the context directly. It also has the benefit of being able to provide a pointer to where it was removed from, which is useful.

    So to me it's not just a matter of preference, but that there are additional benefits to Remove

    I will of course concede that it is more work to deliver Remove.

    cc thisismissem

    read more

  • @julian @jdp23 well, a Delete can be operated on an array of objects. :D

    Send one with all the objects that are affected from the local instance (and probably you must keep in mind that not all replies might be).

    read more

  • thisismissem seems I misspoke, as Nutomic's reply above clarifies: the tree stays but is effectively orphaned. Lemmy v1.0 will allow the reply tree to be accessed post-deletion.

    The original query does still remain the same: what would be the best way forward to explicitly signal the deletion (or technically, the removal) of an entire reply tree?

    cc jdp23@neuromatch.social mariusor@metalhead.club

    read more
Post suggeriti
  • An idea.

    General Discussion activitypub chess
    2
    1
    0 Votes
    2 Posts
    10 Views
    @jdt one of the first non-social-media uses I've seen for ActivityPub was castling club:https://castling.club/
  • 0 Votes
    1 Posts
    12 Views
    Destroying Autocracy – November 13, 2025Welcome to this week’s “Destroying Autocracy”.It’s your source for curated news affecting democracy in the cyber arena with a focus on protecting it. That necessitates an opinionated Butlerian jihad against big tech as well as evangelizing for open-source and the Fediverse. Since big media’s journalism wing is flailing and failing in its core duty to democracy, this is also a collection of alternative reporting on the eternal battle between autocracy and democracy. We also cover the cybersecurity world. You can’t be free without safety and privacy.FYI, my opinions will be in bold. And will often involve cursing. Because humans. Especially tech bros. And fascists. Fuck ’em.The Programmer’s Fulcrum is the future (and smaller) home for a fusion of Symfony Station and Battalion. Its tagline is Devs Defending Democracy, Developing the OMN.You can sign up now and for 2025 get an email with links to and featured articles for each week’s Symfony Station Communiqué and Battalion “Destroying Autocracy” post along with their featured articles. And you’ll be set with TPF after the fusing.We are posting on the Fediverse now at @thefulcrum @thefulcrum.dev and original website content will start in 2026.Featured Item(s)Wrekage/Salvage writes:Once you’ve seized the tools of political life to build communal power, it’s hard to forget what a hammer feels like in your hand.Bonfire Networks is a tiny software org that has spent the past couple of years building a framework for communities on the open social web. At the end of last week, they released Bonfire Social, a microblogging app.Like Mastodon, Bonfire Social runs on ActivityPub, but it takes differently opinionated approach to sociability.(It has) features I (and many others) have been advocating for in Fediverse software for years, often while people explained at length that such things simply could not be implemented.Most exhilarating to me, though, is that they aren’t just building another microblogging app. They’re making a toolkit for internet community software that is healthy and good and designed around real human needs from the start.As they put it in their crowdfunding campaign, they’re making building blocks for communities on the open social web.Sparks fly upTotal awesomeness that needs to blow up. We will cover (and support) Bonfire extensively on The Programmer’s Fulcrum.We start and end with good news to make the middle bearable.The response to Russia’s War Crimes, Techno Feudalism, and other douchebaggeryThe Kyiv Independent reports:Ukraine slaps new sanctions on Putin’s team and propagandist publishersRadio Free Europe reports:EU ‘Democracy Shield’ Aims To Counter Russian DisinformationOpen Web Advocacy has:Tim Berners-Lee On Apple’s Browser Engine Ban and Web AppsHeise reports:Office alternative from Germany by Ionos and Nextcloud is now availableGreat.Speaking of Germany, The Guardian reports:ChatGPT violated copyright law by ‘learning’ from song lyrics, German court rulesMeta could face millions in fines for not signing content deals in AustraliaDigital Rights Bytes asks:Can the government read my text messages?404 Media reports:Judge Rules Flock Surveillance Images Are Public Records That Can Be Requested By AnyoneTechCrunch reports:Wikipedia urges AI companies to use its paid API, and stop scrapingBrookings says:We should all be LudditesPreach brother.Poynter reports:As independent newspapers disappear, a secretive alliance fights to save themNeutralOpen Knowledge shares:Open letter: Harnessing open source AI to advance digital sovereigntyThe Ringer has:How Catastrophic Is It If the AI Bubble Bursts? An FAQ.The Evil Empire (AKA Autocracy) Strikes Back404 Media reports:DHS Gives Local Cops a Facial Recognition App To Find ImmigrantsTechCrunch reports:Why a lot of people are getting hacked with government spywareLawmakers warn Democratic governors that states are sharing drivers’ data with ICEEuractiv reports:EU’s red tape bonfire puts AI ahead of privacy protectionNOYB reports:EU Commission internal draft would wreck core principles of the GDPRThe Guardian reports:The EU has let US tech giants run riot. Diluting our data law will only entrench their power.Tech giants vow to defend users in US as spyware companies make inroads with Trump administrationFreedom of the Press Foundation reports:Kansas county pays $3M for forgetting the First AmendmentPariah StatesBleepingComputer reports:APT37 hackers abuse Google Find Hub in Android data-wiping attacksBitDefender reports:Russian hacker admits helping Yanluowang ransomware infect companiesThe Register reports:UK asks cyberspies to probe whether Chinese buses can be switched off remotelyKrebs on Security reports:Google Sues to Disrupt Chinese SMS Phishing TriadBig MediaThe Columbia Journalism Review has:Editorial Independence Means Technological IndependenceThe Open Media Network peeps.The Guardian reports:EU investigates Google over ‘demotion’ of commercial content from news mediaBig TechAnd:Big Tech’s control freak era is breaking itself apartThe Techno Anarchist Manifesto lists tools to help you avoid most of this AI horseshit.Lies, damned lies and AI: the newest way to influence elections may be here to stayJesus.Digital colonialism: the new frontier of Latin American dependency.A side effect of techno feudalism.PC Mag reports:Asking ChatGPT About Affairs or Abortion? Be Careful, Marketers Are Peeking at Your PromptsCybersecurity/PrivacyThe Register reports:OWASP Top 10: Broken access control still tops app security listIEEE Spectrum reports:Your AI Agent Is Now a Target for Email Phishing. New tools can help thwart the attacks.Like bitcoin, if you use this shit you deserve what you get.DarkReading reports:Orgs Move to SSO, Passkeys to Solve Bad Password HabitsGlassWorm Returns, Slices Back into VS Code ExtensionsCheck out VS Codium friends.BleepingComputer reports:Police disrupts Rhadamanthys, VenomRAT, and Elysium malware operationsFediverseElena Rossini shares:The rebellion will be federated – 2025 editionA New Social has:Bonfire and A New SocialBonfire explains:Matters of care – why Bonfire maintenance comes first.Comciencia has:A comunicação da ciência no FediversoLaura Hargreves shares:Growing My Own Little Fediverse: The Joy of Going Further Down the Rabbit HoleInside My Matrix: How I Reclaimed Messaging from the CloudTechCrunch reports:Threads targets podcasters with new features, aiming to become the home for show discussionsBTW, fuck Threads.Slightly Decentralized Social MediaThe Dabbler has:Chicken Caesars: they’re messing with your Bluesky feedTechCrunch reports:Jack Dorsey funds diVine, a Vine reboot that includes Vine’s video archiveHmm, this is built with Nostr.CTAs (aka show us some free love)That’s it for this week. Please share this edition of Destroying Autocracy.Follow me on the Fediverse. Or this site via the button in the footer. Or via RSS. Or even our future home in 2026, if you want a head start.Keep fighting!Ringleader, BattalionReuben Walker Follow me on the Fediverse#activitypub #ai #autocracy #bigJournalism #bigTech #bluesky #bonfire #bridgyfed #democracy #fascism #fediverse #matrix #stopChina #stopIsrael #stopRedAmerica #stopRussia #supportUkraine #technoanarchism #technofeudalism #threads #xmpphttps://battalion.mobileatom.net/?p=3838
  • 0 Votes
    1 Posts
    12 Views
    I’m setting up the ActivityPub Fuzzer. What’s not clear to me is whether or not this thing can run over localhost on two different ports or whether a proxy is required.#activitypub
  • WordPress and 844e

    Uncategorized fep 844e activitypub wordpress
    5
    0 Votes
    5 Posts
    38 Views
    silverpill@mitra.social the second code example in FEP 844e is wrong though, it uses [ and ] instead of { and } around the "object" in implements