Make gitea webhooks openproject compatible (#28435) (#31081)

Backport #28435 by Chief-Detektor

Co-authored-by: André Rosenhammer <andre.rosenhammer@gmail.com>
This commit is contained in:
Giteabot
2024-05-26 12:53:42 +08:00
committed by GitHub
co-authored by André Rosenhammer
parent 7d56ee3c0f
commit 1171b24d52
8 changed files with 102 additions and 23 deletions
+1
View File
@@ -53,6 +53,7 @@ func toUser(ctx context.Context, user *user_model.User, signed, authed bool) *ap
FullName: user.FullName,
Email: user.GetPlaceholderEmail(),
AvatarURL: user.AvatarLink(ctx),
HTMLURL: user.HTMLURL(),
Created: user.CreatedUnix.AsTime(),
Restricted: user.IsRestricted,
Location: user.Location,