You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
Yarden Shoham 88a03a6133
Link mentioned user in markdown only if they are visible to viewer (#21554)
We need to make sure a user can't confirm the existence of a user with
private visibility

* Follow up on #21533 

### Before
#### User

![image](https://user-images.githubusercontent.com/20454870/197357580-340911d7-1659-4fc9-a9f6-7ed6bc3476b4.png)

#### Admin

![image](https://user-images.githubusercontent.com/20454870/197357676-a8f0ae63-8f80-4221-a9b5-b6311552910a.png)

### After
#### User

![image](https://user-images.githubusercontent.com/20454870/197357536-05616edb-7821-469d-8e51-6f8cb84c1362.png)

#### Admin

![image](https://user-images.githubusercontent.com/20454870/197357703-071fe984-de79-43aa-a77c-a85b046292a4.png)

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
agit Add more linters to improve code readability (#19989) 2 years ago
asymkey Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
attachment Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
auth SessionUser protection against nil pointer dereference (#21358) 2 years ago
automerge Add more linters to improve code readability (#19989) 2 years ago
comments Move issues related files into models/issues (#19931) 2 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
cron Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Limit length of repo description and repo url input fields (#21119) 2 years ago
gitdiff Ignore error when retrieving changed PR review files (#21487) 2 years ago
issue Update milestone counters when issue is deleted (#21459) 2 years ago
lfs Prevent Authorization header for presigned LFS urls (#21531) 2 years ago
mailer Add team member invite by email (#20307) 2 years ago
markup Link mentioned user in markdown only if they are visible to viewer (#21554) 2 years ago
migrations Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
mirror Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
org move invite by mail to services package (#21513) 2 years ago
packages Replace `ServeStream` with `ServeContent` (#20903) 2 years ago
pull Add generic set type (#21408) 2 years ago
release Do not send notifications for draft releases (#21451) 2 years ago
repository Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 2 years ago
task Move some files into models' sub packages (#20262) 2 years ago
user Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
webhook Decouple HookTask from Repository (#17940) 2 years ago
wiki Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago