Files
ahp 22d92c133d feat: release v0.2.0 profiles, chat, freeze, and bots
Ship the product pass on the v0.1.3 schema with additive migrations, a replica migration lock, and bot accounts kept out of people lists.
2026-10-10 16:42:35 +03:30

29 lines
669 B
Go

package api_test
import (
"net/http"
"testing"
)
func TestCommunityEndpointPublic(t *testing.T) {
e := setup(t)
code, body := e.do(t, "GET", "/api/community", "", nil)
if code != http.StatusOK {
t.Fatalf("community: %d %v", code, body)
}
socials, ok := body["socials"].([]any)
if !ok {
t.Fatalf("missing socials: %v", body)
}
if socials == nil {
t.Fatal("socials must be a list")
}
if _, hasDonation := body["donation"]; hasDonation {
t.Fatal("donation must not be exposed")
}
// Telegram channel surface was removed from the product.
if _, hasChannel := body["channel"]; hasChannel {
t.Fatal("legacy channel field must not be exposed")
}
}