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.
This commit is contained in:
ahp
2026-10-10 16:42:35 +03:30
parent 8586bbafcc
commit 22d92c133d
85 changed files with 10510 additions and 1341 deletions
+7
View File
@@ -1,10 +1,12 @@
package api
import (
"context"
"net"
"net/http"
"net/url"
"strings"
"time"
"github.com/gorilla/websocket"
"github.com/redis/go-redis/v9"
@@ -31,6 +33,11 @@ type Server struct {
func NewServer(cfg *config.Config, st *store.Store, rdb *redis.Client, stg storage.Storage) *Server {
hub := NewHub(rdb)
hub.SetSeen(func(userID int64) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
_ = st.TouchLastSeen(ctx, userID)
})
notifier := service.NewNotifier(st, hub)
trustedProxyConfig = cfg
return &Server{