-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] user function: prune old posts #1442
Comments
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? |
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 🦩 I think I will try write up a script soon-ish to do some purging. EDIT: Update is that I ran into #1135 and #2196 and got distracted and gave up. Another run at it coming One Day Soon ™️ |
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:
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. |
|
Just spun up a GTS instance and one of the first things I missed is exactly this feature. I want to use my instance for two accounts - one would be normal and the other would be a bot account. I want this bot account posts older than 6 months to be deleted, like it's possible on Mastodon instances 😕 |
I'm running image bots on mine for a year now. I can give you the python script I made that deletes them via the normal post API if you want. :3
Edit: I'll link it here if there is interest when I get back home again later today.
…On Sat, Nov 2, 2024, at 10:45, Karmalakas wrote:
Just spun up a GTS instance and one of the first things I missed is
exactly this feature. I want to use my instance for two accounts - one
would be normal and the other would be a bot account. I want this bot
account posts older than 6 months to be deleted, like it's possible on
Mastodon instances 😕
—
Reply to this email directly, view it on GitHub
<#1442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZJ7EXV3J75TDPIKAPUB53Z6SNK7AVCNFSM6AAAAAAUTIWIFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSHEZTOMRRGU>.
You are receiving this because you are subscribed to this
thread.Message ID:
***@***.***>
|
@kouya , thanks 🙂 But I can wait. I mean it's not a must have feature just yet, but IMO it's a must have in a year or so 😄 Also, I'm running GTS on a TrueNAS Scale as a custom app, so I'm not sure how comfortable I'd be adding the script in a container. I'm not that familiar with Linux sysems yet 🙂 |
Yeah fair enough it needs the sqlite3 command line client to figure out what posts to expire and cron or a systemd timer. I feel like the botsin space shutdown brought a lot of attention to gts which is really cool. :3 |
That's exactly why I'm here 😅 |
before the end of the year there's some big internal changes to status processing / storage coming, in the form of status edits and tombstones (so we can maintain threading even when statuses in the chain get deleted). once those are done i plan to work on old status pruning, both old remote and old local ones. |
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.
Describe alternatives you've considered.
None
Additional context.
No response
The text was updated successfully, but these errors were encountered: