diff options
| author | eltrac <hi@eltr.ac> | 2026-03-16 20:07:00 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-16 20:07:00 +0800 |
| commit | b971a2f520786f4d98d919fc0807d8ceb1a10000 (patch) | |
| tree | 6ffc8968f0782f5d1c33e7c10e745f3ac8cd671e /src | |
| parent | 6fa84d2dd758124a1fa2de299cf84afa108a45cd (diff) | |
feat: generate unique id for each Webmention
Diffstat (limited to 'src')
| -rw-r--r-- | src/weepinbell/processor.clj | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/weepinbell/processor.clj b/src/weepinbell/processor.clj index 7df66b4..326688b 100644 --- a/src/weepinbell/processor.clj +++ b/src/weepinbell/processor.clj @@ -70,8 +70,9 @@ :items first javamap->map) wm {:source source - :target target - :modified (System/currentTimeMillis)} + :target target + :id (digest/md5 (str source target)) + :modified (System/currentTimeMillis)} raw-photo (or (-> mf (get-in [:properties "author"]) first |
