Skip to content

Commit 9270232

Browse files
haileyokdevinivy
andauthored
ozone: check labels when asserting protected tags (#4283)
* check labels when asserting protected tags * fix * fix' --------- Co-authored-by: Devin Ivy <[email protected]>
1 parent 6f59d64 commit 9270232

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ozone/src/api/moderation/emitEvent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ const handleModerationEvent = async ({
121121
])
122122
}
123123

124-
if (isTakedownEvent || isReverseTakedownEvent) {
124+
const isTakedownOrReverseTakedownEvent =
125+
isTakedownEvent || isReverseTakedownEvent
126+
if (isTakedownOrReverseTakedownEvent || isLabelEvent) {
125127
const status = await moderationService.getStatus(subject)
126128

127129
if (status?.takendown && isTakedownEvent) {

0 commit comments

Comments
 (0)