Skip to content
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

Delete / Edit before not working #91

Open
monkeyworknet opened this issue Nov 7, 2023 · 1 comment
Open

Delete / Edit before not working #91

monkeyworknet opened this issue Nov 7, 2023 · 1 comment

Comments

@monkeyworknet
Copy link

Executing the following bash script via cron every day:

`export SHREDDIT_USERNAME=xxx
export SHREDDIT_PASSWORD=xxx
export SHREDDIT_CLIENT_ID=xxx
export SHREDDIT_CLIENT_SECRET=xxx
export SHREDDIT_BEFORE=$(date -u -d "40 days ago" +"%Y-%m-%d %H:%M:%S.%N %Z")
export SHREDDIT_REPLACEMENT_COMMENT="Content deleted for privacy protection"

/usr/local/shreddit/shreddit-linux
`

This has been working for a few months but noticed recently (since about Sept 24th or so) that the script isn't deleting or editing the posts and when run manually not throwing any errors - for example the output is:

`
2023-11-07T18:48:32.008009Z DEBUG Editing...
at src/things/comment.rs:94
in edit with self: Comment { id: "xxx", body: "text", permalink: "/r/link", source: Api { score: 2, created_utc: 1695598200.0, can_gild: false } }, config: Config { username: "xxx", password: "xx", client_id: "xxx", client_secret: "xx", dry_run: false, thing_types: [Posts, Comments], before: 2023-09-28T18:47:02.218205717Z, max_score: None, replacement_comment: "Content deleted for privacy protection", user_agent: "ShredditRustClient", gdpr_export_dir: None, edit_only: false }

2023-11-07T18:48:32.206916Z DEBUG Sleeping for 2s to prevent rate limiting.
at src/things/mod.rs:31
in edit with self: Comment { id: "xx", body: "text", permalink: "/r/link", source: Api { score: 2, created_utc: 1695598200.0, can_gild: false } }, config: Config { username: "xx", password: "xxx", client_id: "xx", client_secret: "xxx", dry_run: false, thing_types: [Posts, Comments], before: 2023-09-28T18:47:02.218205717Z, max_score: None, replacement_comment: "Content deleted for privacy protection", user_agent: "ShredditRustClient", gdpr_export_dir: None, edit_only: false }
`

No error messages that I can see.

@fn-ix
Copy link

fn-ix commented Nov 8, 2023

Not sure if the same issue, but I just ran the script for the first time today to scrub everything going back several years and it successfully deletes a dozen or so entries before seemingly concluding all is done.

  2023-11-07T21:33:14.717144Z DEBUG  Page contained 0 results
    at src/things/comment.rs:302

  2023-11-07T21:33:14.717258Z  INFO  Completed shredding Comments
    at src/main.rs:149

  2023-11-07T21:33:14.717298Z  INFO  Completed shredding [Posts, Comments]
    at src/main.rs:152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants