Black Friday33% off all plans See plans Enter it at checkout

Comments and Threads

Viewers of a shared board can leave comments. They persist across visits and across updates of the board, and they live with the share in your own Cloudflare account: in the moodboard-comments D1 database that Set Up created. See Cloudflare Account Setup.

How viewers comment

The shared-board viewer has a Comments button in the top-right corner, with a badge showing how many comments the board has. It opens a panel on the right:

  • The panel lists every comment on the board, oldest first, with its author and how long ago it was posted.
  • The form at the bottom takes a name (Your name) and the comment (Write a comment…). Post Comment sends it.

No account is required. Click the save button next to the name to remember it in that browser; it then shows as your name with a pencil button to change it. A comment posted without a name appears as Anonymous.

The panel refreshes every 15 seconds, so a conversation between two people with the link updates on its own, with a soft sound when a new comment arrives.

Comments stay when you press Update on the board.

Reading comments back in the app

Comments are not pulled back into the app. Open the share URL in a browser to read them.

They are also rows in your D1 database, so you can query them directly. The share ID is the last part of the link (…/view/<share-id>). In the Cloudflare dashboard, open the moodboard-comments database under D1 and run a query in its console, or use the wrangler command line:

npx wrangler d1 execute moodboard-comments --remote --command "SELECT * FROM comments WHERE share_id = '<share-id>';"

Each row has the comment’s id, share_id, author_name, text and created_at.

Delete a comment

There is no moderation panel in the app or on the page. Delete a comment from the D1 table, in the dashboard console or with wrangler:

npx wrangler d1 execute moodboard-comments --remote --command "DELETE FROM comments WHERE id = <comment-id>;"

Stop sharing removes the share and all of its comments in one go. See Updating a Shared Board.

Privacy

Comments are public. Anyone with the share URL can read them, and anyone with the URL can post; there is no sign-in and no spam challenge on the form. Treat shared boards as public, and do not invite comments on confidential boards.

Where to go next

Was this helpful?

0

Updated

Comments

Leave a Reply