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
23 11 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.


Gli ultimi otto messaggi ricevuti dalla Federazione
  • 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

  • mariusor@metalhead.club that works too!

    read more

  • Thanks! I will do just that... mostly since I don't feel like hosting my own context just for this one property.

    This feature is now implemented and should ship with the next minor version of NodeBB — v4.8.0.

    read more

  • @nutomic I realize this explanation probably skips a lot of information that's clear to me from my context, but I'll try to answer if anyone has any questions.

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    12 Views
    After Nearly 10 Years of Building Mastodon, Eugen Rochko Steps Into Advisory RoleMastodon's creator steps back from CEO role, transfers assets to non-profit organization.https://blog.joinmastodon.org/2025/11/my-next-chapter-with-mastodon/#Mastodon #OpenSource #SocialMedia #ActivityPub #FediVerse
  • ** ** *_* / /

    General Discussion gemini gopher guppy fediverse activitypub
    1
    0 Votes
    1 Posts
    5 Views
    ** ** *_* / /_____ ____ / /_(_) /__ / **/ ** \/ ** \/ **/ / //_// /_/ /_/ / /_/ / /_/ / ,< \__/\____/\____/\__/_/_/|_| tootik v0.19.9=> https://github.com/dimkr/tootiktootik is a federated nanoblogging service for the small internet.tootik allows people to participate in the fediverse using their Gemini, Gopher or Finger client of choice and makes the fediverse lighter, more private and more accessible. tootik's interface strips content to bare essentials (like text and links), puts the users in control of the content they see and tries to "slow down" the fediverse to make it more compatible with the slower pace of the small internet.It's a single executable that handles both the federation (using ActivityPub) and the frontend (using Gemini) aspects, while sqlite takes care of persistency. It should be lightweight and efficient enough to host a small community even on a cheap server, and hopefully, be easy to hack on.tootik implements only a small subset of ActivityPub, and probably doesn't really conform to the spec.Changelog:=> https://github.com/dimkr/tootik/releases/tag/v0.19.9#Gemini #Gopher #Guppy #Fediverse #ActivityPub
  • 0 Votes
    1 Posts
    10 Views
    Are you an administrator running Mastodon?⚠️ Upgrade to version 4.5! ⚠️Older versions of Mastodon contain known security vulnerabilities. In addition, outdated instances may not properly display or communicate certain types of content (such as quotes) introduced in the latest version.To ensure the security, compatibility, and convenience of your users, you should upgrade your Mastodon instance to version 4.5 as soon as possible.#Mastodon #Fediverse #ActivityPub #Fedi #FediAmin #Administrator #Admin #MastoAdmin
  • 0 Votes
    1 Posts
    5 Views
    Una breve guida al fediverso utile in quanto spiega bene i concetti base con cui lavorano mastodon & co:. Il Fediverso consente alle persone su reti sociali indipendenti di seguirsi e interagire tra loro senza dover ottenere un account su ciascun servizio. Questo avviene già sulle reti di posta elettronica e sulle reti telefoniche, perché non anche sulle reti sociali? Animation Produced by LILA - ZeMarmot Team Direction & Animation by Aryeom Script & Technology by Jehan Voice by Paul Peterson Licence: CC-By-SA 4.0 Sponsored by Framasoft Sound by ORL - AMMD Music: "Dolling" by CyberSDF - CC-BY 4.0