Skip to content

Commit 7eb46fb

Browse files
GustedLoïc Dachary
authored andcommitted
[BRANDING] Update nodeinfo branding
- Change the values for the nodeinfo API, to use branded values. - Resolves https://codeberg.org/forgejo/forgejo/issues/257 (cherry picked from commit fa5130a6633d1ae41e0d717f2d94b7f28a618954)
1 parent 0f12ca9 commit 7eb46fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/api/v1/misc/nodeinfo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ func NodeInfo(ctx *context.APIContext) {
6666
nodeInfo := &structs.NodeInfo{
6767
Version: "2.1",
6868
Software: structs.NodeInfoSoftware{
69-
Name: "gitea",
69+
Name: "forgejo",
7070
Version: setting.AppVer,
71-
Repository: "https://github.com/go-gitea/gitea.git",
72-
Homepage: "https://gitea.io/",
71+
Repository: "https://codeberg.org/forgejo/forgejo.git",
72+
Homepage: "https://forgejo.org/",
7373
},
7474
Protocols: []string{"activitypub"},
7575
Services: structs.NodeInfoServices{

tests/integration/api_nodeinfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestNodeinfo(t *testing.T) {
3131
var nodeinfo api.NodeInfo
3232
DecodeJSON(t, resp, &nodeinfo)
3333
assert.True(t, nodeinfo.OpenRegistrations)
34-
assert.Equal(t, "gitea", nodeinfo.Software.Name)
34+
assert.Equal(t, "forgejo", nodeinfo.Software.Name)
3535
assert.Equal(t, 24, nodeinfo.Usage.Users.Total)
3636
assert.Equal(t, 17, nodeinfo.Usage.LocalPosts)
3737
assert.Equal(t, 2, nodeinfo.Usage.LocalComments)

0 commit comments

Comments
 (0)