mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
52552133e3
The people on a journey can now talk about its entries, and a reader of its share link can comment there too and follow the journey by email (#1702, - journey_entry_comments holds a comment under an entry: by an account or signed with a name through the link, plain text up to 2000 characters. It goes with its entry and journey; a deleted account leaves it as unknown. Everyone on the journey reads and writes them, the author or an editor deletes one, an editor hides one from everyone but the editors. - The share link gains allow_comments and allow_subscriptions (default 0, kept when a save leaves them out). Readers comment under the entries the link shows, behind the link's password gate, with a honeypot field and a limit per address and link. The public payload says what a reader may do. - journey_share_subscribers holds an address following a link, with double opt-in: one mail asks to confirm it, nothing else is sent before. The mail links open app pages that post the token, so a scanner changes nothing. The owner lists and removes the addresses; they go with the link. - A daily job (journey-digest) tells everyone on a journey about entries published since the last run (journey_entry_published, their settings apply, not about their own), mails each confirmed follower once a day in their language with an unsubscribe link and a List-Unsubscribe header, and forgets addresses unconfirmed for a week. journey_entries.announced marks what was told; existing published entries start as told. - The owner hears about a new comment (journey_comment). Both events are translated in every locale, as are the follower mails. - journey:entry:commented pings the journey's people; the journal page leaves it to the comments reader instead of reloading. - MCP: list_journey_comments, set_journey_comment_hidden, delete_journey_comment, list_journey_subscribers, remove_journey_subscriber, and create_journey_share_link takes both switches like the REST route. The assistant is not offered the follower tools.