···199199 unique(starred_by_did, repo_at)
200200 );
201201202202+ create table if not exists reactions (
203203+ id integer primary key autoincrement,
204204+ reacted_by_did text not null,
205205+ thread_at text not null,
206206+ kind text not null,
207207+ rkey text not null,
208208+ created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
209209+ unique(reacted_by_did, thread_at, kind)
210210+ );
211211+202212 create table if not exists emails (
203213 id integer primary key autoincrement,
204214 did text not null,
+2-2
appview/db/issues.go
···277277}
278278279279func GetIssueWithComments(e Execer, repoAt syntax.ATURI, issueId int) (*Issue, []Comment, error) {
280280- query := `select owner_did, issue_id, created, title, body, open from issues where repo_at = ? and issue_id = ?`
280280+ query := `select owner_did, issue_id, created, title, body, open, issue_at from issues where repo_at = ? and issue_id = ?`
281281 row := e.QueryRow(query, repoAt, issueId)
282282283283 var issue Issue
284284 var createdAt string
285285- err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open)
285285+ err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open, &issue.IssueAt)
286286 if err != nil {
287287 return nil, nil, err
288288 }
···4747`nixos-shell` like so:
48484949```bash
5050-QEMU_NET_OPTS="hostfwd=tcp::6000-:6000,hostfwd=tcp::2222-:22" nixos-shell --flake .#knotVM
5050+nix run .#vm
5151+# or nixos-shell --flake .#vm
51525253# hit Ctrl-a + c + q to exit the VM
5354```
54555555-This starts a knot on port 6000 with `ssh` exposed on port
5656-2222. You can push repositories to this VM with this ssh
5757-config block on your main machine:
5656+This starts a knot on port 6000, a spindle on port 6555
5757+with `ssh` exposed on port 2222. You can push repositories
5858+to this VM with this ssh config block on your main machine:
58595960```bash
6061Host nixos-shell
+12-3
docs/spindle/hosting.md
···31312. **Build the Spindle binary.**
32323333 ```shell
3434- go build -o spindle core/spindle/server.go
3434+ cd core
3535+ go mod download
3636+ go build -o cmd/spindle/spindle cmd/spindle/main.go
3737+ ```
3838+3939+3. **Create the log directory.**
4040+4141+ ```shell
4242+ sudo mkdir -p /var/log/spindle
4343+ sudo chown $USER:$USER -R /var/log/spindle
3544 ```
36453737-3. **Run the Spindle binary.**
4646+4. **Run the Spindle binary.**
38473948 ```shell
4040- ./spindle
4949+ ./cmd/spindle/spindle
4150 ```
42514352Spindle will now start, connect to the Jetstream server, and begin processing pipelines.