Skip to content

Commit

Permalink
fix leftover hide option & adapt hideflag
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed Oct 18, 2023
1 parent 3b76aec commit 2c2c034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocs/conversions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ type ShareData struct {
Quicklink bool `json:"quicklink,omitempty" xml:"quicklink,omitempty"`
// PasswordProtected represents a public share is password protected
// PasswordProtected bool `json:"password_protected,omitempty" xml:"password_protected,omitempty"`
Hide bool `json:"hide" xml:"hide"`
Hidden bool `json:"hidden" xml:"hidden"`
}

// ShareeData holds share recipient search results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (h *Handler) updateReceivedShare(w http.ResponseWriter, r *http.Request, sh
return nil
}

hideFlag, _ := strconv.ParseBool(r.URL.Query().Get("hide"))
hideFlag, _ := strconv.ParseBool(r.URL.Query().Get("hidden"))

// we need to add a path to the share
shareRequest := &collaboration.UpdateReceivedShareRequest{
Expand Down

0 comments on commit 2c2c034

Please sign in to comment.