diff --git a/appview/pages/templates/timeline.html b/appview/pages/templates/timeline.html index aa7a5f4..92d260e 100644 --- a/appview/pages/templates/timeline.html +++ b/appview/pages/templates/timeline.html @@ -23,7 +23,7 @@
tightly-knit social coding, join now {{ i "arrow-right" "w-4 h-4" }} -

Join our IRC channel: #tangled on Libera Chat. +

Join our Discordor IRC channel: #tangled on Libera Chat. Read an introduction to Tangled here.

diff --git a/appview/pages/templates/user/login.html b/appview/pages/templates/user/login.html index 5c8d45c..b0a0785 100644 --- a/appview/pages/templates/user/login.html +++ b/appview/pages/templates/user/login.html @@ -70,7 +70,7 @@

- Join our IRC channel: + Join our Discord or IRC channel: #tangled on Libera Chat. diff --git a/appview/state/middleware.go b/appview/state/middleware.go index a90f7d8..fb1421d 100644 --- a/appview/state/middleware.go +++ b/appview/state/middleware.go @@ -8,6 +8,8 @@ import ( "strings" "time" + "slices" + comatproto "github.com/bluesky-social/indigo/api/atproto" "github.com/bluesky-social/indigo/atproto/identity" "github.com/bluesky-social/indigo/xrpc" @@ -174,9 +176,15 @@ func StripLeadingAt(next http.Handler) http.Handler { } func ResolveIdent(s *State) Middleware { + excluded := []string{"favicon.ico"} + return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { didOrHandle := chi.URLParam(req, "user") + if slices.Contains(excluded, didOrHandle) { + next.ServeHTTP(w, req) + return + } id, err := s.resolver.ResolveIdent(req.Context(), didOrHandle) if err != nil {