mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Notifications API: respond with updated notifications (#17064)
* notifications api: return updated notifications in response * make generate-swagger * openapi fix Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		@@ -160,7 +160,7 @@ func NotificationStatusPost(c *context.Context) {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
 | 
			
		||||
	if _, err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
 | 
			
		||||
		c.ServerError("SetNotificationStatus", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user