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

Block Instances and Actors #16

Open
kwaa opened this issue Feb 22, 2024 · 1 comment
Open

Block Instances and Actors #16

kwaa opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kwaa
Copy link
Member

kwaa commented Feb 22, 2024

Since I don't want to add too much complexity, this method is instance level, and only the admin can block other instances/actors.

This will only affect blocked instances/actors interactions with Hatsu instances, not their ability to view the contents of Hatsu instances.

/api/v0/admin/block_instance

Accepts a domain. https://instance.tld

/api/v0/admin/block_actor

Accepts a URL, this should be the id of the actor. https://instance.tld/users/foo

/api/v0/admin/block_acct

Accepts a foo@instance.tld string, the Hatsu instance sends a WebFinger request to query the corresponding id.

foo@instance.tld => https://instance.tld/.well-known/webfinger?resource=acct:foo@instance.tld

/api/v0/admin/unblock_{instance,actor,acct}

Unblock versions of the three APIs above.

@kwaa kwaa added enhancement New feature or request help wanted Extra attention is needed labels Feb 22, 2024
@kwaa
Copy link
Member Author

kwaa commented Mar 7, 2024

I'll probably implement block actor/acct in v0.1.2 and block instance after v0.2.0. v0.3.0

The block_instance should accept a string and do an ends_with match.

block_instance example.com
https://example.com (blocked)
https://foo.example.com (blocked)

block_instance https://example.com
https://example.com (blocked)
https://foo.example.com (not blocked)

@kwaa kwaa removed the help wanted Extra attention is needed label Mar 9, 2024
@kwaa kwaa self-assigned this Mar 9, 2024
@kwaa kwaa added this to the 0.3 [Koi wa Sensou] milestone Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant