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
24 12 0

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

  • 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
Post suggeriti
  • 0 Votes
    1 Posts
    9 Views
    The major feature in v3.2.0 of Ktistec is thread analysis. The previous release, v3.1.2, added support for viewing threads from Lemmy communities. I follow the Open Source community, which leads to many large threads. The thread on FFMpeg and Google has 112 posts and is still growing.Thread analysis helps me navigate these extensive conversations. It includes: top contributors, a timeline histogram, and notable branches.The analysis applies several heuristics to identify interesting branches of the main thread. “Interesting” is subjective, but the algorithm currently looks for sudden bursts of activity and highlights those areas. Ktistec uses this to create a table of contents that links directly to those branches. Clicking on one of these links takes you to a branch-only view that focuses on the selected part of the thread.It's fast—I anticipated needing to cache analyses, but analyzing a thread with over 400 posts takes only about 50 milliseconds on my production server.Figure 1: Screenshot of the final design. Notable branches link to subsets of the thread.This release also addresses an object visibility regression that was introduced in a previous version.Full ChangelogAddedThread analysis that displays key participants, a timeline histogram, and notable branchesNew MCP tools: analyze_thread and get_threadFocal point rendering support for image attachmentsFixedRegression in object visibility affecting replies to threadsChangedEnhanced MCP tool details for likes, dislikes, and announcesImproved cookie security.#ktistec #fediverse #activitypub #crystallang
  • 0 Votes
    1 Posts
    11 Views
    The open source single-user server software will be ready for #alpha #testing soon! It supports #HereUSSDK, #TheProtocols4.0, and #ActivityPub out of the box. We are looking for #earlyadopters. If interested, please contact us via comments or email: contact@team.hereus.net
  • 0 Votes
    1 Posts
    17 Views
    Hey Fediverse!Just a friendly reminder that FediMeteo brings you weather forecasts for 2908 cities across 38 countries, delivered right to your timeline every 6 hours and in your local language.Getting started is easy:Visit our website to find your country and city - https://fedimeteo.comFollow your city's account (e.g., @roma@it.fedimeteo.com).Enjoy the weather updates!Stay informed, wherever you are!#Weather #Fediverse #FediMeteo #ActivityPub#Argentina #Australia #Austria #Belgium #Brazil #Bulgaria #Canada #Croatia #Czechia #Denmark #Estonia #Finland #France #Germany #Greece #Hungary #India #Ireland #Italy #Japan #Latvia #Lithuania #Malta #Mexico #Netherlands #NewZealand #Norway #Poland #Portugal #Romania #Slovakia #Slovenia #Spain #Sweden #Switzerland #Taiwan #UnitedKingdom #UnitedStates
  • 0 Votes
    2 Posts
    25 Views
    @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.