summaryrefslogtreecommitdiff
path: root/internal/federation
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-04-03 15:06:39 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-03 14:06:39 +0100
commit8ed1b8142c93b4a0887ad4fde7eb7558f9ec7e08 (patch)
tree6a4ae3c636f6ea8a4f2a22dd4a75cb7ea2203365 /internal/federation
parent[bugfix] improved authenticate post inbox error handling (#2803) (diff)
downloadgotosocial-8ed1b8142c93b4a0887ad4fde7eb7558f9ec7e08.tar.xz
[bugfix] Sort follows chronologically (#2801)
The id on the follows table is not a ULID, but a random ID. Sorting on them results in a completely random order. Instead, sort on created_at, which sould result in a stable and intended sort order. Fixes: #2769 Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Diffstat (limited to 'internal/federation')
-rw-r--r--internal/federation/federatingdb/following_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/federation/federatingdb/following_test.go b/internal/federation/federatingdb/following_test.go
index 93bc6d348..83d1a72b5 100644
--- a/internal/federation/federatingdb/following_test.go
+++ b/internal/federation/federatingdb/following_test.go
@@ -47,8 +47,8 @@ func (suite *FollowingTestSuite) TestGetFollowing() {
suite.Equal(`{
"@context": "https://www.w3.org/ns/activitystreams",
"items": [
- "http://localhost:8080/users/1happyturtle",
- "http://localhost:8080/users/admin"
+ "http://localhost:8080/users/admin",
+ "http://localhost:8080/users/1happyturtle"
],
"type": "Collection"
}`, string(fJson))