···199 unique(starred_by_did, repo_at)
200 );
2010000000000202 create table if not exists emails (
203 id integer primary key autoincrement,
204 did text not null,
···199 unique(starred_by_did, repo_at)
200 );
201202+ create table if not exists reactions (
203+ id integer primary key autoincrement,
204+ reacted_by_did text not null,
205+ thread_at text not null,
206+ kind text not null,
207+ rkey text not null,
208+ created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
209+ unique(reacted_by_did, thread_at, kind)
210+ );
211+212 create table if not exists emails (
213 id integer primary key autoincrement,
214 did text not null,
+2-2
appview/db/issues.go
···277}
278279func GetIssueWithComments(e Execer, repoAt syntax.ATURI, issueId int) (*Issue, []Comment, error) {
280- query := `select owner_did, issue_id, created, title, body, open from issues where repo_at = ? and issue_id = ?`
281 row := e.QueryRow(query, repoAt, issueId)
282283 var issue Issue
284 var createdAt string
285- err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open)
286 if err != nil {
287 return nil, nil, err
288 }
···47`nixos-shell` like so:
4849```bash
50-QEMU_NET_OPTS="hostfwd=tcp::6000-:6000,hostfwd=tcp::2222-:22" nixos-shell --flake .#knotVM
05152# hit Ctrl-a + c + q to exit the VM
53```
5455-This starts a knot on port 6000 with `ssh` exposed on port
56-2222. You can push repositories to this VM with this ssh
57-config block on your main machine:
5859```bash
60Host nixos-shell
···47`nixos-shell` like so:
4849```bash
50+nix run .#vm
51+# or nixos-shell --flake .#vm
5253# hit Ctrl-a + c + q to exit the VM
54```
5556+This starts a knot on port 6000, a spindle on port 6555
57+with `ssh` exposed on port 2222. You can push repositories
58+to this VM with this ssh config block on your main machine:
5960```bash
61Host nixos-shell
+12-3
docs/spindle/hosting.md
···312. **Build the Spindle binary.**
3233 ```shell
34- go build -o spindle core/spindle/server.go
00000000035 ```
3637-3. **Run the Spindle binary.**
3839 ```shell
40- ./spindle
41 ```
4243Spindle will now start, connect to the Jetstream server, and begin processing pipelines.
···312. **Build the Spindle binary.**
3233 ```shell
34+ cd core
35+ go mod download
36+ go build -o cmd/spindle/spindle cmd/spindle/main.go
37+ ```
38+39+3. **Create the log directory.**
40+41+ ```shell
42+ sudo mkdir -p /var/log/spindle
43+ sudo chown $USER:$USER -R /var/log/spindle
44 ```
4546+4. **Run the Spindle binary.**
4748 ```shell
49+ ./cmd/spindle/spindle
50 ```
5152Spindle will now start, connect to the Jetstream server, and begin processing pipelines.