mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package * tweek
This commit is contained in:
@@ -21,7 +21,7 @@ func ToNotificationThread(n *models.Notification) *api.NotificationThread {
|
||||
|
||||
//since user only get notifications when he has access to use minimal access mode
|
||||
if n.Repository != nil {
|
||||
result.Repository = n.Repository.APIFormat(models.AccessModeRead)
|
||||
result.Repository = ToRepo(n.Repository, models.AccessModeRead)
|
||||
}
|
||||
|
||||
//handle Subject
|
||||
|
Reference in New Issue
Block a user