News: Beiträge, Anzeigedauer und öffentliche Seitenansicht
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad0b08f32a
commit
434bab0b7a
4 files changed
+317
-2
No files matched your search
@@ -84,6 +84,13 @@ async function readSidecar(projectId, imageId) {
|
||||
}
|
||||
}
|
||||
|
||||
/** Breite und Hoehe eines Bildes des Projekts, null wenn es nicht existiert. */
|
||||
export async function readNewsImageMeta(projectId, imageId) {
|
||||
if (!safeId(projectId) || !safeId(imageId)) return null
|
||||
const meta = await readSidecar(projectId, imageId)
|
||||
return meta ? { w: meta.w, h: meta.h } : null
|
||||
}
|
||||
|
||||
/** Markiert ein Bild als an einen Beitrag gebunden (wird nicht mehr aufgeraeumt). */
|
||||
export async function claimNewsImage(projectId, imageId) {
|
||||
if (!safeId(projectId) || !safeId(imageId)) return
|
||||
|
||||
Reference in new issue
Block a user