-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add user blocking #29028
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
Merged
Merged
Add user blocking #29028
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4e7b8e1
Add user blocks.
KN4CK3R 9cafd97
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 81e8bfa
Add web part.
KN4CK3R df59f17
Add docs.
KN4CK3R 983ab22
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R b89c51a
Add more tests.
KN4CK3R 701bdc9
Fix test.
KN4CK3R 8c5732c
Use `show-modal`.
KN4CK3R e6a4e5c
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R b57c1f4
Update docs/content/usage/blocking-users.en-us.md
KN4CK3R 43d2e66
Add missing migration.
KN4CK3R deacef9
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 5099747
Add suggestions.
KN4CK3R 3d8e1b9
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 3af664d
Do not block actions by repository admins.
KN4CK3R 28da385
Merge branch 'main' into feature-user-block
KN4CK3R 211cf09
Merge branch 'feature-user-block' of https://github.com/KN4CK3R/gitea…
KN4CK3R 576e6b4
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 6c9c584
Change update method.
KN4CK3R 30f5bdd
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 4429f95
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R 75ea916
Merge branch 'main' into feature-user-block
GiteaBot eb8525b
Merge branch 'main' into feature-user-block
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
date: "2024-01-31T00:00:00+00:00" | ||
title: "Blocking a user" | ||
slug: "blocking-user" | ||
sidebar_position: 25 | ||
toc: false | ||
draft: false | ||
aliases: | ||
- /en-us/webhooks | ||
menu: | ||
sidebar: | ||
parent: "usage" | ||
name: "Blocking a user" | ||
sidebar_position: 30 | ||
identifier: "blocking-user" | ||
--- | ||
|
||
# Blocking a user | ||
|
||
Gitea supports blocking of users to restrict how they can interact with you and your content. | ||
|
||
You can block a user in your account settings, from the user's profile or from comments created by the user. | ||
The user is not directly notified about the block, but they can notice they are blocked when they attempt to interact with you. | ||
Organization owners can block anyone who is not a member of the organization too. | ||
If a blocked user has admin permissions, they can still perform all actions even if blocked. | ||
|
||
### When you block a user | ||
|
||
- the user stops following you | ||
- you stop following the user | ||
- the user's stars are removed from your repositories | ||
- your stars are removed from their repositories | ||
- the user stops watching your repositories | ||
- you stop watching their repositories | ||
- the user's issue assignments are removed from your repositories | ||
- your issue assignments are removed from their repositories | ||
- the user is removed as a collaborator on your repositories | ||
- you are removed as a collaborator on their repositories | ||
- any pending repository transfers to or from the blocked user are canceled | ||
|
||
### When you block a user, the user cannot | ||
|
||
- follow you | ||
- watch your repositories | ||
- star your repositories | ||
- fork your repositories | ||
- transfer repositories to you | ||
- open issues or pull requests on your repositories | ||
- comment on issues or pull requests you've created | ||
- comment on issues or pull requests on your repositories | ||
- react to your comments on issues or pull requests | ||
- react to comments on issues or pull requests on your repositories | ||
- assign you to issues or pull requests | ||
- add you as a collaborator on their repositories | ||
- send you notifications by @mentioning your username | ||
- be added as team member (if blocked by an organization) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ | |
id: 4 | ||
assignee_id: 2 | ||
issue_id: 17 | ||
- | ||
id: 5 | ||
assignee_id: 10 | ||
issue_id: 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,13 @@ | |
id: 2 | ||
uid: 2 | ||
repo_id: 4 | ||
|
||
- | ||
id: 3 | ||
uid: 10 | ||
repo_id: 21 | ||
|
||
- | ||
id: 4 | ||
uid: 10 | ||
repo_id: 32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- | ||
id: 1 | ||
blocker_id: 2 | ||
blockee_id: 29 | ||
|
||
- | ||
id: 2 | ||
blocker_id: 17 | ||
blockee_id: 28 | ||
|
||
- | ||
id: 3 | ||
blocker_id: 2 | ||
blockee_id: 34 | ||
|
||
- | ||
id: 4 | ||
blocker_id: 50 | ||
blockee_id: 34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.