Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Matthias Pfefferle
Matthias Pfefferle
@pfefferle@mastodon.social  ·  activity timestamp 2 weeks ago

Hey @julian I am working on implementing a Soft Delete. Do you have an example JSON how a Tombstone should look like?

https://codeberg.org/fediverse/fep/src/branch/main/fep/4f05/fep-4f05.md

Cookie monster!

  • Copy link
  • Flag this post
  • Block
marius
marius
@mariusor@metalhead.club replied  ·  activity timestamp 2 weeks ago

@pfefferle is there a reason why you aren't looking first at the official specification?

The "soft-delete" behaviour is the actual spec conformant mechanism for deletion in ActivityPub.

What @julian describes as "hard-delete" in this FEP exists in the spec only as a side-effect of Undo-ing the original Create activity.

  • Copy link
  • Flag this comment
  • Block
Matthias Pfefferle
Matthias Pfefferle
@pfefferle@mastodon.social replied  ·  activity timestamp 2 weeks ago

@mariusor @julian https://mastodon.social/@pfefferle/115943312457638690

  • Copy link
  • Flag this comment
  • Block
Matthias Pfefferle
Matthias Pfefferle
@pfefferle@mastodon.social replied  ·  activity timestamp 2 weeks ago

@julian Just checked the spec for a Tombstone... Seems to be pretty straight forward ☺️

#rtfm

  • Copy link
  • Flag this comment
  • Block
Matthias Pfefferle
Matthias Pfefferle
@pfefferle@mastodon.social replied  ·  activity timestamp 2 weeks ago

@julian is there a way to `Undo` a soft delete?

  • Copy link
  • Flag this comment
  • Block
julian
julian
@julian@community.nodebb.org replied  ·  activity timestamp 2 weeks ago

Re: Hey @julian I am working on implementing a Soft Delete.

@pfefferle@mastodon.social sure, because 4f05 assumes that deletion activity is a request to refresh the cache, a simple Update would suffice to bring the object back from Tombstone status.

That said if you issued an Undo(Delete) that'd probably work too, and would do the same thing.

  • Copy link
  • Flag this comment
  • Block
Matthias Pfefferle
Matthias Pfefferle
@pfefferle@mastodon.social replied  ·  activity timestamp 2 weeks ago

@julian perfect than this will do the job: https://github.com/Automattic/wordpress-activitypub/pull/2824

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct