~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] After number of saves, order popular list by most recent first.

Details
Message ID
<20250130223536.17520-1-peter@netlandish.com>
DKIM signature
missing
Download raw message
Patch: +1 -1
Changelog-changed: Popular listing page will now use the database ID to
 order the listing after popular counter. This will allow most recent
 items to show first.
---
 api/loaders/loaders.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/loaders/loaders.go b/api/loaders/loaders.go
index a3d99dd..9b8cde6 100644
--- a/api/loaders/loaders.go
+++ b/api/loaders/loaders.go
@@ -39,7 +39,7 @@ func getPopularLinks(ctx context.Context) func(key []string) ([][]*models.BaseUR
				sq.Eq{"b.public_ready": true},
				sq.Gt{"b.counter": 0},
			},
			OrderBy: "counter DESC",
			OrderBy: "counter DESC, b.id DESC",
			Limit:   50,
		}

-- 
2.47.2
Details
Message ID
<D7GAYR73H6YT.1Y3XZHBGR2O6L@netlandish.com>
In-Reply-To
<20250130223536.17520-1-peter@netlandish.com> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.code.netlandish.com:~netlandish/links
   b30ddca..21dd284  master -> master
Reply to thread Export thread (mbox)