ssb-browser-demo icon indicating copy to clipboard operation
ssb-browser-demo copied to clipboard

Delete blobs associated with blocked users

Open KyleMaas opened this issue 5 years ago • 3 comments

I'm not sure how you'd do this considering blob storage seems to have no metadata associated with blobs, but it would be nice if, when a profile is blocked and their messages deleted, we could clear out blobs which came from that person as well, just to make sure that if the user had a blob we don't want that it doesn't just stick around forever.

Related to #68.

KyleMaas avatar Jan 19 '21 01:01 KyleMaas

Yes, it seems the blob purge modules knows which feed a blob might belong to.

arj03 avatar Jan 19 '21 07:01 arj03

The lack of blob metadata is one of the things I was struggling with for ssb-blobs-purge - in that case, not having a timestamp.

KyleMaas avatar Jan 19 '21 12:01 KyleMaas

As it is, I'm not sure this one will be possible, for two reasons:

  1. We really have no good way to list all of the blobs in storage. This is a limitation of RAF, which gives us no way to do that, so our "best guess" way to do it is too look at all the blobs we might have and check and see if we do.
  2. Blobs have no ownership information stored with them, or really any other information. We don't know who they came from, we don't know which post pulled them into our storage, and we don't know when they were stored.

KyleMaas avatar Feb 01 '21 13:02 KyleMaas