Phase 10, part 7: posting accounts, and who may post to which

Social accounts become posting accounts: several per network, the
company's and each person's own, with their tokens kept per account. The
old sign-ins are adopted as the company's. Admins say who may post to which
(Settings → Posting accounts); a draft can go out from one account or a
copy to several, each recording who posted it and as what. Signing an
account out, or removing its owner, holds the posts scheduled to it and
tells whoever scheduled them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 09:26:34 -07:00
co-authored by Claude Opus 5.5
parent a4dd36f5a4
commit bb4772637c
31 changed files with 1758 additions and 325 deletions
+14
View File
@@ -72,6 +72,20 @@
{{end}}
</section>
{{if or .Posting .Connectable}}
<section class="card" id="posting">
<h2>Your posting accounts</h2>
<p class="help">Your own social accounts, to post as yourself. They're yours to post to; an admin can let others too. Signing one out takes it out of everyone's list, and posts scheduled to it come back to Posts.</p>
{{if .Posting}}<ul class="accounts">{{range .Posting}}
<li><strong>{{.Label}}</strong>{{if not .Expires.IsZero}} <span class="muted small">until {{.Expires.Local.Format "2 Jan 2006"}}</span>{{end}}
<form class="inline" method="post" action="/settings/account/posting/{{.ID}}/remove"><button type="submit" class="secondary small">Sign out</button></form></li>
{{end}}</ul>{{end}}
<div class="actions">{{range .Connectable}}
<form class="inline" method="post" action="/auth/{{.ID}}/start?for=me"><button type="submit" class="secondary">Connect your {{.Name}}</button></form>
{{end}}</div>
</section>
{{end}}
<section class="card" id="sessions">
<h2>Where you're signed in</h2>
<table class="list">