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

Add tombstone tests, better test errors #2046

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Add tombstone tests, better test errors #2046

merged 1 commit into from
Jan 20, 2022

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Jan 19, 2022

Adds test cases for Lemmy and Lotide tombstones. Also improves error reporting for failed tests.

@vpzomtrrfrt I tried to add tests for lotide Delete, Vote, Undo/Vote as well, but it seems like all of those are treated as private (i couldnt even access /comments/{commentID}/likes without auth). In Lemmy all of those are explicitly marked as public (vote, delete). Thats because votes are federated to other instances (only sent as activity, not over any HTTP endpoint). For deletions there seems to be no reason to keep it private, as it contains only the Url.

@vpzomtrrfrt
Copy link
Contributor

Created an issue on lotide to look into object permissions: https://todo.sr.ht/~vpzom/lotide/183

Votes are a bit tricky in this space since ideally they'd be anonymous but that doesn't seem practical

@Nutomic
Copy link
Member Author

Nutomic commented Jan 19, 2022

It would probably work to make them visible for followers instead. But it might be clearer to define a new visibility level, like server-only.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Not sure if there's anything else you wanted to add to this, but you can merge whenever you like.

@Nutomic Nutomic merged commit f23fed7 into main Jan 20, 2022
@Nutomic
Copy link
Member Author

Nutomic commented Jan 20, 2022

No, making the permissions compatible is probably gonna take some time.

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