Commit Graph
65 Commits
Author SHA1 Message Date
travandClaude Opus 5 fc9539a618 /items shows items only, not custody transfers
A `nft: "give"` message is a change of custody, not a thing. It has no photo of
its own, so it borrowed the photo of the item it transferred - which meant the
same object appeared on the grid twice, a few cards apart, distinguished only
by a dimmed image and an id overlay. That reads as a duplicate, not as a
hand-off.

Custody is better answered one level down. Each card already links to its
item's thread, where the mint and every hand-off since are in order, with the
steward resolved. So the overlay was showing a truncated feed id on the grid to
save a click that is worth making.

Filters on nft === "mint" rather than excluding gives: every custodisco message
carries one of the two - checked across all 407 - so matching mint is exact.
301 items from 3 feeds, down from 407 entries.

The feed count now counts feeds that actually contributed an item rather than
the size of the follow set. The pub follows itself and publishes no items, so
the old number was one too high and would have drifted further as feeds get
followed for other reasons.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192zBTNZKZn5svyJ5HTnYds
2026-08-22 20:30:46 -04:00
travandClaude Opus 5 cc0ad8c1a8 Add /items: one merged grid of every item the pub knows about
cust.ooo linked to one viewer page per kiosk, so every new kiosk meant
another hand-added link. /items selects on "whatever this pub follows"
instead: follow a new kiosk from the pub and its items appear on the next
cache miss, with no code change and no edit to the site.

serveUserFeed already reduced a feed's contact messages into a follow set;
that moves to lib/follows.js so both routes share one implementation rather
than drifting. It also picks up a fix on the way: the old filter passed
messages with no .value through and then dereferenced .value.content on them.

Two properties of the data drive items.js, both verified against the live log
and both quietly wrong to assume otherwise:

  * custodisco is the STRING "true", not a boolean.
  * no custo message has ever set content.channel, so the channel index finds
    nothing and the filter has to read content fields directly. This is why
    /channel/custodisco renders an empty page.

Log order is arrival order, which diverges from publish order whenever an old
feed is backfilled, so the collected set is sorted by timestamp. That makes
"newest first" and the ?before cursor agree; verified as zero overlap between
consecutive pages.

Cards rather than articles: 300 photos in a single column reads like a mailing
list, not an archive. A transfer borrows the photo of the item it transfers and
links to that item's thread, so the grid stays regular and the give is still
legible as a hand-off. Images are lazy, and 267 blobs are held against 301
mints, so a missing photo degrades to a placeholder instead of a broken icon.

serveHome now shows the grid instead of a bare id-lookup box, which was a dead
end for anyone arriving without an id already in hand. The ?id= redirect stays.

The footer commit now comes from .deployed-commit, written by the deploy
script. Deploys are rsync, so the server's checkout keeps whatever HEAD it was
cloned at and `git rev-parse` there names a commit unrelated to the files
actually running.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192zBTNZKZn5svyJ5HTnYds
2026-08-22 19:40:27 -04:00
cel 38c61a5069 Support audio and video elements 2020-09-10 02:31:58 +00:00
cel aa1697181e Add footer with copyright and source link 2020-06-11 14:20:06 -04:00
cel ca9ab26ec6 Show content warnings 2019-08-29 13:10:59 -07:00
cel 332c09b046 Whitespace and code style consistency 2019-08-29 12:49:22 -07:00
cel 13d54825ca Render npm packages more 2018-08-31 18:55:40 -07:00
cel 1a47f5f10e Render git update more semantically 2018-08-31 18:55:40 -07:00
cel 45a18976ee Improve type checking
- Make sure value is string before passing it to hyperscript,
  otherwise it could be an object with property "innerHTML" which would
  get included without escaping.
- Make sure value is truthy (or != null) before dereferencing it.
- Make sure value is array before calling array methods on it.
2018-08-31 18:52:01 -07:00
cel d55a613b25 Escape content from messages put into innerHTML 2018-08-31 13:24:09 -07:00
cel 2e582bd1dc Don't linkify bad refs 2018-08-23 17:41:18 -07:00
cel 9357a5e729 URL-encode in href: msg ids, not feed or blob ids 2018-08-23 14:28:13 -07:00
cel e3821bb878 Show message ids 2018-08-22 13:07:40 -07:00
cel 7123fbcab1 Default to require opt-in for publicWebHosting 2018-08-17 15:32:42 -07:00
Jacob Karlsson b74745f556 Clean code 2018-07-07 13:04:43 +02:00
Jacob Karlsson d210926c8b Render gathering time 2018-07-07 12:51:00 +02:00
Jacob Karlsson 3c608e0159 Add gathering title 2018-07-07 12:41:38 +02:00
Jacob Karlsson d09eab73ae Count attendees 2018-07-06 23:50:18 +02:00
Jacob Karlsson d15a09749d Render gathering images and markdown the descs 2018-07-02 20:26:16 +02:00
Jacob Karlsson cecdc93fd3 Render gathering descriptions 2018-07-02 19:52:17 +02:00
Anders Rune Jensen 8680189006 Make userfeed less noisy 2018-04-25 17:44:18 +02:00
Anders Rune Jensen e525414d1f Render blog posts 2018-04-25 15:57:30 +02:00
Anders Rune Jensen f09e7259ef Tidy 2018-01-12 00:12:03 +01:00
Anders Rune Jensen 2c29133777 Don't about in user-feed 2018-01-11 16:24:30 +01:00
Anders Rune Jensen e6bc3b037a Don't render channel subscribes in user-feed 2018-01-11 16:20:07 +01:00
Anders Rune Jensen 2d14256b09 Fix metadata rendering with long texts 2018-01-11 00:26:45 +01:00
Anders Rune Jensen e3788ada87 wrap long words in posts 2018-01-11 00:07:52 +01:00
Anders Rune Jensen 73e8e7c298 Fix render crash in user-feed 2018-01-10 23:45:26 +01:00
Anders Rune Jensen b6ee22a69b Handle empty description in about and align things to top 2017-12-26 15:34:09 +01:00
cel 5dbcb1c135 Handle boolean value false for publicWebHosting 2017-12-19 10:31:49 -10:00
Anders Rune Jensen ff87105bd1 Add ability to not be hosted publicly 2017-12-19 12:10:39 +01:00
Anders Rune Jensen 9f0354990d Fix render crash on wierd mentions 2017-12-18 22:13:19 +01:00
Anders Rune Jensen 2dcdef60a2 Don't show private messages in user-feed, its crowded enough already 2017-12-18 21:53:17 +01:00
Anders Rune Jensen 1af70e26c5 Fix render crash on about messages with emoji, if it was the first message rendered 2017-12-18 21:41:08 +01:00
Anders Rune Jensen 9ba7dc35e3 Indention fix 2017-12-16 15:03:05 +01:00
cel a1c6e510fb Fix rendering empty message 2017-10-12 14:39:55 -10:00
Anders Rune Jensen 265f3e7311 Render npm packages simpler 2017-10-12 21:22:17 +02:00
Anders Rune Jensen 1143975d12 Merge branch 'hyperscript' 2017-10-12 21:18:13 +02:00
Anders Rune Jensen 880f0401de Support chess 2017-08-01 20:57:21 +02:00
cel d9737b8da7 Merge remote-tracking branch 'origin/hyperscript' 2017-07-18 15:43:04 -10:00
Anders Rune Jensen ccc712bad7 render svg 2017-07-07 22:27:14 +02:00
Anders Rune Jensen d6e3e6a468 Better image sizing on profiles 2017-06-29 21:57:42 +02:00
Ev BogueandAnders Rune Jensen b2c03954f0 Merge: add thread links to posts that have a root
And don't render them when rendering the thread
2017-06-25 22:18:50 +02:00
Anders Rune Jensen 336a39d74f render git repo creation 2017-06-23 21:37:22 +02:00
Anders Rune Jensen ac8c79fc2f Fix git update rendering 2017-06-23 21:33:44 +02:00
cel 07ff4c602e rss: put feed author in author field 2017-06-10 14:32:13 -10:00
cel b99fb41a81 Fix RSS rendering 2017-06-10 14:32:13 -10:00
cel ee9c39f049 Merge remote-tracking branches 'origin/hyperscript' and 'angelo/render_rss' 2017-06-10 14:31:49 -10:00
Angelo DiNardi 4eee4ae728 Stop doing special rendering for RSS items, use HTML!
I missed the part of the RSS docs that allow HTML in the description.
2017-06-09 23:13:40 -07:00
Angelo DiNardi 17be3231ec Add some context in to the title. 2017-06-09 12:56:34 -07:00