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 GET /admin/repo/takedowns #908

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

brianolson
Copy link
Contributor

API gap, we could add a repo takedown, and repeal it, but we couldn't list what was active

out.Cursor = id
}
if len(out.Dids) < limit {
out.Cursor = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we omit the cursor from the response when it's empty? Not sure if it makes sense to return a cursor 0 since that's still valid.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't feel super strogly; it would take a bit of rework from 'greater than previous last id' to 'greater-equal 0 or (last id plus one)'

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah okay omitempty makes that work

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