diff --git a/pkg/api/websocket.go b/pkg/api/websocket.go index c1c8de45..1b1c3b23 100644 --- a/pkg/api/websocket.go +++ b/pkg/api/websocket.go @@ -255,7 +255,7 @@ func (a *StreamplaceAPI) HandleWebsocket(ctx context.Context) httprouter.Handle if err != nil { log.Error(ctx, "failed to add mod badge to message", "error", err) } - if message.Author.Handle == "" || message.Author.Handle == "handle.invalid" { + if message.Author.Handle == "" || message.Author.Handle == "handle.invalid" { message.Author.Handle = a.ATSync.ResolveAuthorHandle(ctx, message.Author.Did) } initialBurst <- message @@ -301,7 +301,7 @@ func (a *StreamplaceAPI) HandleWebsocket(ctx context.Context) httprouter.Handle log.Error(ctx, "failed to convert chat message: %w", err) return } - if msgView.Author.Handle == "" || msgView.Author.Handle == "handle.invalid" { + if msgView.Author.Handle == "" || msgView.Author.Handle == "handle.invalid" { msgView.Author.Handle = a.ATSync.ResolveAuthorHandle(ctx, msgView.Author.Did) } prv.Message = msgView