From cab43c89e6b7121fdf2eeb7ffbacf2592ef02cac Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 24 Jan 2023 14:26:06 -0500 Subject: [PATCH] Mark Share.LastVisited optional in Subsonic API --- server/subsonic/responses/responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/subsonic/responses/responses.go b/server/subsonic/responses/responses.go index cee04f57d..55517ca3b 100644 --- a/server/subsonic/responses/responses.go +++ b/server/subsonic/responses/responses.go @@ -368,7 +368,7 @@ type Share struct { Username string `xml:"username,attr" json:"username"` Created time.Time `xml:"created,attr" json:"created"` Expires *time.Time `xml:"expires,omitempty,attr" json:"expires,omitempty"` - LastVisited time.Time `xml:"lastVisited,attr" json:"lastVisited"` + LastVisited time.Time `xml:"lastVisited,omitempty,attr" json:"lastVisited"` VisitCount int `xml:"visitCount,attr" json:"visitCount"` }