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:
@@ -270,7 +270,7 @@ func (s *Server) contentItems(w http.ResponseWriter, r *http.Request) {
|
||||
showErr(err.Error())
|
||||
return
|
||||
}
|
||||
redirect(w, r, "/inbox", "drafted")
|
||||
redirect(w, r, "/posts", "drafted")
|
||||
default:
|
||||
http.Error(w, "unknown action", http.StatusBadRequest)
|
||||
}
|
||||
@@ -319,7 +319,7 @@ func (s *Server) writeDrafts(r *http.Request, e *inventory.Entry, ids []string)
|
||||
return errors.New("choose a subreddit for the Reddit post")
|
||||
}
|
||||
// The rules go into the prompt; without them the model is told
|
||||
// to be careful, and the Inbox warns.
|
||||
// to be careful, and Posts warns.
|
||||
info, err := s.subreddit(r.Context(), req.Subreddit, false)
|
||||
if err != nil {
|
||||
s.Log.Warn("reddit: couldn't read the subreddit's rules", "subreddit", req.Subreddit, "err", err)
|
||||
|
||||
Reference in New Issue
Block a user