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

Merged
merged 6 commits into from
Jan 24, 2025

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.

@surfdude29
Copy link
Contributor

If I've understood correctly, would this fix bluesky-social/social-app#4999 and bluesky-social/social-app#6467?

@devinivy
Copy link
Collaborator Author

@surfdude29 yes, it should!

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.

3 participants