Repository navigation
Add author DMs, resolve, filters, and delete to the microblog - #98
Closed
Ssundar941 wants to merge 1 commit into
Closed
Ssundar941 wants to merge 1 commit into
Ssundar941 wants to merge 1 commit into
Conversation
Pages can list author uids in front matter (`authors:`). A new post or reply DMs each author through the Spring DM API, and each author can turn those DMs off per page with a checkbox in the panel; the DM says how. Posts can be marked resolved (or reopened) by their writer or a page author. Resolved posts drop out of the default Active view and show under History; Mine shows your own posts. Your own posts also get a delete button, and the post actions sit on one row that never wraps. No Flask change: resolve status is a marker reply and the DM opt-out is a marker post, both hidden from the panel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds to the microblog
Page-author DMs
authors: [uid1, uid2]./api/person/uid/{uid}→/api/dm/conversations). The poster is never DM'd about their own post.Resolve / Reopen
Filters
Delete + layout
How it works (no backend change)
[[microblog:resolved]] <uid>), and the DM opt-out as a hidden marker post ([[microblog:dm-off]]). The panel never shows either.userUidon posts. A page author's resolve marker is not server-verified, so a crafted request could hide a post from Active; it would still appear under History.Files
_includes/microblog_foundation.html: filters, DM setting, resolve/delete buttons, author DMsassets/js/api/microblog.js: resolve markers, DM opt-out, delete, current userassets/js/api/microblog-notify.js(new): sends the page-author DMs_sass/open-coding/microblog.scss: all new styles_posts/CSP/flask/api/2025-11-08-microblog-playground.md: docs forauthors:and the opt-outTesting
authors:yet, so no DMs will go out until teams add their uids.🤖 Generated with Claude Code