LinkedIn publishing works again; rename Inbox to Posts
LinkedIn: - The API version was fixed at 202501, retired by LinkedIn (426 NONEXISTENT_VERSION). It's now the month before last, stepping back a month (up to four) if LinkedIn says a version isn't active. - The versioned Posts API needs a title for a link's article card (422). Supermarket reads the linked page's title and description and sends them, falling back to the page's address as the title. Tested for real: a post with a link went out to the member's profile. Inbox is now Posts: the menu, page, messages and docs; the page moves to /posts, and /inbox redirects there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{define "content"}}{{with .Data}}{{$conn := .Connected}}
|
||||
<h1>Scheduled</h1>
|
||||
<p class="lede">Approved posts, in the order they go out ({{.Zone}}). Supermarket publishes them on time as long as it's running; one more than 12 hours late goes back to the Inbox instead.</p>
|
||||
<p class="lede">Approved posts, in the order they go out ({{.Zone}}). Supermarket publishes them on time as long as it's running; one more than 12 hours late goes back to Posts instead.</p>
|
||||
|
||||
{{if .Drafts}}
|
||||
<table class="list">
|
||||
@@ -26,6 +26,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{{else}}
|
||||
<section class="card empty"><p>Nothing scheduled. Schedule drafts from the <a href="/inbox">Inbox</a>.</p></section>
|
||||
<section class="card empty"><p>Nothing scheduled. Schedule drafts from the <a href="/posts">Posts</a>.</p></section>
|
||||
{{end}}
|
||||
{{end}}{{end}}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<h1>Sources</h1>
|
||||
<p class="lede">Pick an inventory entry to fetch its latest news, choose what to write about, and get a draft for each channel to review in the <a href="/inbox">Inbox</a>.</p>
|
||||
<p class="lede">Pick an inventory entry to fetch its latest news, choose what to write about, and get a draft for each channel to review under <a href="/posts">Posts</a>.</p>
|
||||
|
||||
{{if .Rows}}
|
||||
<table class="list">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<a class="card module" href="{{.Link}}">
|
||||
<h3>{{template "icon" .ID}}{{.Name}} <span class="badge">{{.Phase}}</span></h3>
|
||||
<p>{{.Body}}</p>
|
||||
{{if eq .ID "content"}}<span class="stat">{{if $inbox}}{{$inbox}} waiting in the Inbox{{else}}Inbox empty{{end}}{{with $.Data.Scheduled}} · {{.}} scheduled{{end}}</span>{{end}}
|
||||
{{if eq .ID "content"}}<span class="stat">{{if $inbox}}{{$inbox}} waiting in Posts{{else}}No posts waiting{{end}}{{with $.Data.Scheduled}} · {{.}} scheduled{{end}}</span>{{end}}
|
||||
</a>
|
||||
{{else}}
|
||||
<section class="card module later">
|
||||
@@ -55,7 +55,7 @@
|
||||
<details class="card">
|
||||
<summary>Imported from the old terminal app {{ago .ImportStatus.At}}</summary>
|
||||
<ul>{{range .ImportStatus.Summary}}<li>{{.}}</li>{{end}}</ul>
|
||||
{{if .QueuedPosts}}<p>Its queued posts are now drafts: <a href="/inbox">{{.QueuedPosts}} waiting in the Inbox</a>.</p>{{end}}
|
||||
{{if .QueuedPosts}}<p>Its queued posts are now drafts: <a href="/posts">{{.QueuedPosts}} waiting in Posts</a>.</p>{{end}}
|
||||
</details>
|
||||
{{end}}
|
||||
{{end}}{{end}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{define "content"}}{{with .Data}}{{$conn := .Connected}}{{$now := .Now}}{{$zone := .Zone}}{{$reddit := .Reddit}}
|
||||
<h1>Inbox</h1>
|
||||
<h1>Posts</h1>
|
||||
<p class="lede">Everything waiting for your approval. Nothing is published until you say so: publish a draft now, or schedule it.
|
||||
{{if .Tagged}}Links to your own sites get UTM tags when published.{{end}}</p>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<a href="{{.Link}}" {{if eq $nav .ID}}aria-current="page"{{end}} class="{{if hasPrefix $nav .ID}}open{{end}}">{{template "icon" .ID}}<span>{{.Name}}</span></a>
|
||||
{{if eq .ID "content"}}
|
||||
<div class="subnav">
|
||||
<a href="/inbox" {{if eq $nav "content/inbox"}}aria-current="page"{{end}}>Inbox{{if $inbox}} <span class="count-badge" title="{{$inbox}} waiting for review">{{$inbox}}</span>{{end}}</a>
|
||||
<a href="/posts" {{if eq $nav "content/posts"}}aria-current="page"{{end}}>Posts{{if $inbox}} <span class="count-badge" title="{{$inbox}} waiting for review">{{$inbox}}</span>{{end}}</a>
|
||||
<a href="/content" {{if eq $nav "content/sources"}}aria-current="page"{{end}}>Sources</a>
|
||||
<a href="/content/scheduled" {{if eq $nav "content/scheduled"}}aria-current="page"{{end}}>Scheduled</a>
|
||||
<a href="/content/published" {{if eq $nav "content/published"}}aria-current="page"{{end}}>Published</a>
|
||||
@@ -98,7 +98,7 @@
|
||||
{{define "reminders"}}{{range .}}
|
||||
<section class="card warn reminder" role="status">
|
||||
<p><strong>{{if .Expired}}{{.Network}}'s sign-in expired on {{.At.Local.Format "2 Jan 2006"}}.{{else}}{{.Network}}'s sign-in expires {{if eq .Days 0}}today{{else if eq .Days 1}}tomorrow{{else}}in {{.Days}} days{{end}}, on {{.At.Local.Format "2 Jan 2006"}}.{{end}}</strong>
|
||||
{{if .Expired}}Nothing can be published to {{.Network}} until you reconnect; scheduled posts for it come back to the Inbox.{{else}}After that, nothing can be published to {{.Network}} until you reconnect.{{end}}</p>
|
||||
{{if .Expired}}Nothing can be published to {{.Network}} until you reconnect; scheduled posts for it come back to Posts.{{else}}After that, nothing can be published to {{.Network}} until you reconnect.{{end}}</p>
|
||||
<a class="button" href="/settings/accounts#network-{{.Network}}">Reconnect {{.Network}}</a>
|
||||
</section>
|
||||
{{end}}{{end}}
|
||||
|
||||
Reference in New Issue
Block a user