release: v0.13.0 (#535)
Twenty-nine commits since v0.12.0. See CHANGELOG.md for the full list and the upgrade notes. Ten additions — the SEO package (site URL, robots.txt, sitemap.xml, JSON-LD), slideshow mode, opt-in original downloads, copy-link, previous/next album navigation, alt text from the Immich description, per-album location precision, the update notice, a Help tab, and a subpage cover grid separate from its photo grid. Two fixes: CJK album slugs, and the lightbox control bar. Photo of the Day (#476) was built on `dev` and reverted as not planned; it never appears in a release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmsHVRL9yQvckUB1ZpVWre --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ralksta <ralksta@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,8 @@ import { decodeAssetId } from '@/lib/tokens';
|
||||
import { getConfig } from '@/lib/config';
|
||||
import { checkRateLimit, getClientIp, retryAfterSeconds } from '@/lib/rate-limit';
|
||||
import { siteLockResponse } from '@/lib/auth';
|
||||
import { assetLocationPrecision } from '@/lib/assetLocation';
|
||||
import { placeLabel } from '@/lib/mapPrecision';
|
||||
|
||||
export async function GET(request: NextRequest, { params }: { params: Promise<{ id: string }> }) {
|
||||
const config = getConfig();
|
||||
@@ -73,6 +75,13 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
const exif = asset.exifInfo;
|
||||
const caption = show.caption ? exif.description?.trim() || undefined : undefined;
|
||||
|
||||
const place = show.location
|
||||
? placeLabel(await assetLocationPrecision(assetId), {
|
||||
city: exif.city ?? '',
|
||||
country: exif.country ?? '',
|
||||
})
|
||||
: { city: '', country: '' };
|
||||
|
||||
const payload = {
|
||||
...(show.camera
|
||||
? {
|
||||
@@ -89,7 +98,15 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
iso: exif.iso,
|
||||
}
|
||||
: {}),
|
||||
...(show.location ? { city: exif.city, country: exif.country } : {}),
|
||||
// Two gates, not one. `exifDisplay.location` decides whether this site
|
||||
// publishes places at all; the album's `location:` decides how precisely
|
||||
// this photograph may be placed — the same setting the map obeys, which
|
||||
// used to stop at the map (#469).
|
||||
// Emitted only when there is something to say. An empty string is not
|
||||
// null, so keeping the keys would defeat the "no data" check below and
|
||||
// render the blank panel it exists to prevent.
|
||||
...(place.city ? { city: place.city } : {}),
|
||||
...(place.country ? { country: place.country } : {}),
|
||||
...(caption ? { description: caption } : {}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user