-
Notifications
You must be signed in to change notification settings - Fork 31
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 #1019
Block Instances #1019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found a couple issues while testing:
- Wrong instance blocked
- Repro: attempt to block
slrpnk.net
fromlemmy.ml
and check block status using web ui - Expected behavior:
slrpnk.net
is blocked - Actual behavior:
bildung.social
is blocked - Notes: it's at least consistent--unblocking
slrpnk.net
from Mlem removesbildung.social
from the block list
- Repro: attempt to block
block_already_exists
error on unblocked instance- Repro: attempt to block
hexbear.net
fromlemmy.ml
- Expected behavior: instance blocked
- Actual behavior:
instance_block_already_exists
error appears twice. Web UI indicates no block took place.
- Repro: attempt to block
- Block status not reflected in
InstanceView
- Repro: block
hexbear.net
from web ui and navigate to its page in Mlem - Expected behavior: menu offers
Unblock
option - Actual behavior: menu offers
Block
option
- Repro: block
Thanks, I'll look into it when I get a chance later.
Hmm, interesting.
This is possibly a result of the first issue - accessing the wrong instance id
This unfortunately isn't possible as there is no |
Turns out this was indeed the case. It should work correctly, now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Added a "Block" action to the ellipsis menu in
InstanceView
. Due to an API limitation, the "block" action is only available when you visit theInstanceView
from a community page or user page (on 0.19.4 and above), and not from search. I've submitted an issue on the Lemmy repo to hopefully resolve this limitation in future.This PR doesn't add the block lists where you'll be able to unblock users/communities/instances - I'll do that in a follow-up PR
Closes #672