Skip to content

Commit

Permalink
fix: don't send feedback to a recently reported post
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Jun 19, 2024
1 parent d3f116b commit e0a315b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UserscriptTools/MetaSmokeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ export class MetaSmokeAPI extends Reporter {
// https://chat.stackexchange.com/transcript/message/65097399
// wait 3 seconds so that SD can start watching for post deletion
await new Promise(resolve => setTimeout(resolve, 3 * 1000));

// don't send feedback to post if it was just reported
return;
}

// otherwise, send feedback
Expand Down

0 comments on commit e0a315b

Please sign in to comment.