Skip to content

Commit

Permalink
✨ Mark appeals as resolved when takedown is issued (#3352)
Browse files Browse the repository at this point in the history
* ✨ Mark appeals as resolved when takedown is issued

* ✨ Only set appealed false if in appealed state

* 📝 Add changeset
  • Loading branch information
foysalit authored Jan 31, 2025
1 parent d377d1a commit 7f52e67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/funny-beers-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@atproto/ozone": patch
"@atproto/api": patch
"@atproto/pds": patch
---

Auto resolve appeals when taking down
2 changes: 2 additions & 0 deletions packages/ozone/src/mod-service/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ const getSubjectStatusForModerationEvent = ({
}
case 'tools.ozone.moderation.defs#modEventTakedown':
return {
// If we are doing a takedown, safe to move the item out of appealed state
...(currentStatus?.appealed ? { appealed: false } : {}),
takendown: true,
lastReviewedBy: createdBy,
reviewState: REVIEWCLOSED,
Expand Down

0 comments on commit 7f52e67

Please sign in to comment.