-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #17453 This PR adds the abbility to block a user from a personal account or organization to restrict how the blocked user can interact with the blocker. The docs explain what's the consequence of blocking a user. Screenshots: ![grafik](https://github.com/go-gitea/gitea/assets/1666336/4ed884f3-e06a-4862-afd3-3b8aa2488dc6) ![grafik](https://github.com/go-gitea/gitea/assets/1666336/ae6d4981-f252-4f50-a429-04f0f9f1cdf1) ![grafik](https://github.com/go-gitea/gitea/assets/1666336/ca153599-5b0f-4b4a-90fe-18bdfd6f0b6b) --------- Co-authored-by: Lauris BH <lauris@nix.lv>
- Loading branch information
Showing
109 changed files
with
2,873 additions
and
543 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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.