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

Appview: ensure takedowns on modlist authors always apply #3192

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

devinivy
Copy link
Collaborator

@devinivy devinivy commented Dec 6, 2024

When we apply moderation lists, we should always ensure the list creator is still active.

Comment on lines +161 to +165
const block = res.blocks[i]
blocks.set(pair.a, pair.b, {
blockUri: block.blockedBy || block.blocking || undefined,
blockListUri: block.blockedByList || block.blockingByList || undefined,
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May consider defensively assuming block might not exist, even though it should. Could log a warn or error in that case.

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

Successfully merging this pull request may close these issues.

2 participants