implemented /bookmark/<ID>/view
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user