From 9fc7c1380b9c6a799b1758fa75f93483c66c7125 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Sun, 12 May 2024 00:14:39 -0400 Subject: [PATCH] sort saved --- state.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.go b/state.go index 84f2579..45c4f08 100644 --- a/state.go +++ b/state.go @@ -160,6 +160,9 @@ func (p State) SortBy(v string) string { if p.Query != "" || p.SearchType == "Communities" { q = "q=" + url.QueryEscape(p.Query) + "&communityname=" + p.CommunityName + "&username=" + p.UserName + "&searchtype=" + p.SearchType + "&" } + if p.Op == "Saved" { + q = "view=Saved&" + } return "?" + q + "sort=" + v + "&listingType=" + p.Listing } func (p State) ListBy(v string) string {