gotosocial
gotosocial copied to clipboard
[feature] user function: prune old posts
Is your feature request related to a problem ?
I'd have to adjust mastopurge to a degree to be able to periodically batch delete posts from gts. It would be nicer to have this feature integrated.
Describe the solution you'd like.
- in the admin/user panel, the user can set a boolean option for auto-deleting posts
- auto-deleting posts can be defined with either what to exclude or what to include in a age/range (pinned posts, favorited posts, media posts, etc)
Describe alternatives you've considered.
None
Additional context.
No response
As an intermediate solution and since the only Mastodon API specific tool I tried was too old for the API, what methods do exist at the moment to delete more than 1 posts at a time and federate that deletion?
what methods do exist at the moment to delete more than 1 posts at a time and federate that deletion
Nothing like that exists right now; you can only delete one post at a time currently. You could probably script something up using the API to iterate through your old posts and delete them, but eventually we should indeed just add this as a feature to GtS so everyone can use it :)
(Sorry for the huge delay in replying btw, didn't see this comment.)
Subscribed, thank you for opening @nikkicoon! V happy to see that this will land as a built-in feature at some point :flamingo: I think I will try write up a script soon-ish to do some purging.
EDIT: Update is that I ran into https://github.com/superseriousbusiness/gotosocial/issues/1135 and https://github.com/superseriousbusiness/gotosocial/issues/2196 and got distracted and gave up. Another run at it coming One Day Soon :tm:
what methods do exist at the moment to delete more than 1 posts at a time and federate that deletion
Nothing like that exists right now; you can only delete one post at a time currently. You could probably script something up using the API to iterate through your old posts and delete them, but eventually we should indeed just add this as a feature to GtS so everyone can use it :)
(Sorry for the huge delay in replying btw, didn't see this comment.)
Thank you for the response! Would you want some help with getting this added? I know nothing about Go, but if it's something that's easy to add, I'd love to help
I would like to vote for this as well. Mastodon calls this feature "automated post deletion". The reason why I think this is an ideal for GtS is:
- Privacy - helps users/admins manage their privacy by stopping people from delving too far back into the past
- Storage - GtS is meant for small servers/instances that may not have resources like limitless storage, so some blanket setting for this will help make the service perpetual
To me, this makes it an essential need of GoToSocial. I would, for example, set posts on my server to delete after 1 year. Maybe a more sophisticated implementation could apply this to all posts except pinned/starred posts.
Recently I have been reading about this feature online, and it seems most people agree that this is best implemented on the server side.
blurp
might fit your needs in the meantime 🙈