Add link previews

This commit is contained in:
2026-09-18 20:56:41 +02:00
parent 601053c51d
commit f152f84139
7 changed files with 188 additions and 13 deletions
+4
View File
@@ -245,6 +245,10 @@ type page struct {
// The reading measure that suits the upload page is far too narrow for a
// listing, which otherwise ends up behind a horizontal scrollbar.
Wide bool
// Preview is the link card for this page, nil when there is nothing
// sensible to tell somebody who has only been handed the URL.
Preview *preview
}
// page builds the common fields, resolving the session so the header can show