Phase 1, part 4: promote the company's own products

- Content lists the company first, at /content/own: its products from
  the profile (always there to pick from), its own feeds (a new profile
  field for the blog, news and releases), and new or updated pages from
  its websites' sitemaps, with each page's title and description.
- Drafts from it are kind "product" (utm_campaign=product), filed under
  the company's name, and prompted to promote the company's own work
  without unsupported claims; on Reddit, in the makers' voice, with a
  warning that self-promotion is often restricted.

This completes Phase 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 14:42:37 -07:00
co-authored by Claude Opus 5.5
parent 0e34f574b7
commit cd24f2a06d
20 changed files with 685 additions and 30 deletions
+2 -1
View File
@@ -117,7 +117,8 @@ func GetItems(d *db.DB, ids []string) ([]Item, error) {
// Counts is how many items an entry has waiting (not used, not dismissed).
func Counts(d *db.DB) (map[string]int, error) {
rows, err := d.Query(`SELECT c.inventory_name, count(*)` + itemFrom + `
WHERE d.item_id IS NULL AND c.used_at IS NULL GROUP BY c.inventory_name COLLATE NOCASE`)
WHERE d.item_id IS NULL AND c.used_at IS NULL AND c.source != 'Product'
GROUP BY c.inventory_name COLLATE NOCASE`)
if err != nil {
return nil, err
}