Phase 1, part 3: Reddit
- Sign in with a Reddit web app; access tokens refresh automatically, and an app-only token reads rules before sign-in. - Reddit drafts: a title and text for one subreddit, chosen when writing. The subreddit's guidelines and rules go into the prompt, which asks for a community member's post that discloses the affiliation and avoids marketing language. - The Inbox shows the subreddit's rules (cached for a day, with Refresh) and warns, without blocking, about promotion rules, restricted subreddits, link-only subreddits, posting in the same subreddit within a week, more than 1 in 10 recent posts linking to the company's sites, and new accounts. - Publishing makes a text post with the source link at the end, or a link post where the subreddit takes only links. - Migration 4 adds the draft's title and subreddit, and the rules cache. Publishers now take a Post, which carries the title and subreddit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,8 +60,14 @@
|
||||
<fieldset class="choice">
|
||||
<legend>Channels</legend>
|
||||
{{range .Channels}}
|
||||
<label class="check"><input type="checkbox" name="channel" value="{{.ID}}" {{if .Connected}}checked{{end}}> {{.Name}}{{if not .Connected}} <span class="muted">(not connected: you can draft, but not publish yet)</span>{{end}}</label>
|
||||
{{/* Reddit is never pre-checked: each post there is a deliberate choice. */}}
|
||||
<label class="check"><input type="checkbox" name="channel" value="{{.ID}}" {{if and .Connected (ne .ID "reddit")}}checked{{end}}> {{.Name}}{{if not .Connected}} <span class="muted">(not connected: you can draft, but not publish yet)</span>{{end}}</label>
|
||||
{{end}}
|
||||
<label class="small">Subreddit, for Reddit
|
||||
<input name="subreddit" list="subreddits" placeholder="e.g. selfhosted" autocomplete="off">
|
||||
<datalist id="subreddits">{{range .Subreddits}}<option value="{{.}}">{{end}}</datalist>
|
||||
<span class="help">One subreddit per post. Its rules are read and followed when writing{{if .Subreddits}}; suggestions come from this entry and your profile{{end}}.</span>
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="choice">
|
||||
<legend>Posts</legend>
|
||||
|
||||
Reference in New Issue
Block a user