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 @@
Join our IRC channel: #tangled on Libera Chat.
+
Join our Discordor IRC channel: #tangled on Libera Chat.
Read an introduction to Tangled here.
- 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 {