implemented /bookmark/<ID>/view

This commit is contained in:
2025-08-03 15:28:49 +02:00
parent b041e4e9be
commit 783eaf3303
8 changed files with 89 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
package de.srsoftware.umbrella.core.model;
import static de.srsoftware.umbrella.core.Constants.*;
import static de.srsoftware.umbrella.core.Util.markdown;
import static java.time.ZoneOffset.UTC;
import de.srsoftware.tools.Mappable;
@@ -27,7 +28,7 @@ public record Bookmark(long id, String url, String comment, LocalDateTime timest
return Map.of(
ID,id,
URL, url,
COMMENT, comment,
COMMENT, Map.of(SOURCE,comment,RENDERED,markdown(comment)),
TAGS, tags,
TIMESTAMP, timestamp.withNano(0)
);