feat(feeds): add optional sandboxed in-tab article preview
Build and publish container images / images (push) Successful in 10m41s
Release container images / release (push) Successful in 24s

This commit is contained in:
Anya Tokugawa committed 2026-11-08 13:55:22 +09:00
1 parent ea1ca432c5
commit f4869c7c8b
10 files changed
+68 -5

No files matched your search

+3 -1
View File
@@ -40,6 +40,7 @@ func (s *Server) handleFeeds(w http.ResponseWriter, r *http.Request) {
return
}
prefix := ""
linkMode := "tab"
if s.systemExtensionEnabled(domain, "organizer.tasks") {
preferences, e := s.store.TaskPreferences(r.Context(), domain, actor)
if e != nil {
@@ -47,8 +48,9 @@ func (s *Server) handleFeeds(w http.ResponseWriter, r *http.Request) {
return
}
prefix = preferences.WikiPrefix
linkMode = preferences.RSSLinkMode
}
s.renderWithContext(w, r, "feeds.gohtml", map[string]any{"Title": "RSS", "FeedWritable": active, "FeedWikiPrefix": prefix, "FeedShareX": s.systemExtensionEnabled(domain, "sharing.x")})
s.renderWithContext(w, r, "feeds.gohtml", map[string]any{"Title": "RSS", "FeedWritable": active, "FeedWikiPrefix": prefix, "FeedLinkMode": linkMode, "FeedShareX": s.systemExtensionEnabled(domain, "sharing.x")})
return
}
key := strings.TrimPrefix(r.URL.Path, feedsAPI)