Files
davidandClaude Opus 5.5 4b2d791909 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>
2026-11-21 12:50:06 -07:00

32 lines
1.4 KiB
HTML

{{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 under <a href="/posts">Posts</a>.</p>
{{if .Rows}}
<table class="list">
<thead><tr><th>Entry</th><th>Relationship</th><th>Sources</th><th>Waiting</th><th>Last fetched</th></tr></thead>
<tbody>
{{range .Rows}}
<tr>
{{if .Own}}
<td><a href="/content/own">{{.Name}}</a> <span class="muted small">your own work</span></td>
<td><span class="badge product">product</span></td>
<td>{{if .Sources}}{{join .Sources ", "}}{{else}}<span class="muted">none: add products, websites or feeds to your <a href="/settings/profile">profile</a></span>{{end}}</td>
{{else}}
<td><a href="/content/{{.Entry.ID}}">{{.Name}}</a></td>
<td><span class="badge {{.Entry.Relationship}}">{{.Entry.Relationship}}</span></td>
<td>{{if .Sources}}{{join .Sources ", "}}{{else}}<span class="muted">none: <a href="/inventory/{{.Entry.ID}}">add some</a></span>{{end}}</td>
{{end}}
<td>{{if .Waiting}}{{.Waiting}}{{end}}</td>
<td>{{ago .LastChecked}}</td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<section class="card empty">
<p>Add the partners and competitors you post about to the <a href="/inventory">Inventory</a> first.</p>
</section>
{{end}}
{{end}}{{end}}