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

Improvements for notes with deleted authors #5627

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

tomhughes
Copy link
Member

This is a follow on to #5609 that does a couple of things.

Firstly it adds a test for a note whose original author has been deleted.

Secondly it corrects the test for whether to drop the first comment to align with what the note model does in the comments association so that the first comment is only dropped if the author was active because in other cases the model will already have excluded it. This primarily affects users in state suspended I think.

@AntonKhorev AntonKhorev merged commit a9dcb66 into openstreetmap:master Feb 6, 2025
22 checks passed
@tomhughes tomhughes deleted the note-hidden-author branch February 6, 2025 20:17
@AntonKhorev
Copy link
Collaborator

If we want to be exact about suspended users, should we treat them always like deleted? There were explicit checks for deleted in helper that let suspended through.

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