Ionosphere.tv
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add mentions table to SQLite schema

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+20
+20
apps/ionosphere-appview/src/db.ts
··· 165 165 CREATE INDEX IF NOT EXISTS idx_comments_subject ON comments(subject_uri); 166 166 CREATE INDEX IF NOT EXISTS idx_comments_author ON comments(author_did); 167 167 168 + CREATE TABLE IF NOT EXISTS mentions ( 169 + uri TEXT PRIMARY KEY, 170 + talk_uri TEXT, 171 + author_did TEXT NOT NULL, 172 + author_handle TEXT, 173 + text TEXT, 174 + created_at TEXT NOT NULL, 175 + talk_offset_ms INTEGER, 176 + byte_position INTEGER, 177 + likes INTEGER DEFAULT 0, 178 + reposts INTEGER DEFAULT 0, 179 + replies INTEGER DEFAULT 0, 180 + parent_uri TEXT, 181 + mention_type TEXT DEFAULT 'during_talk', 182 + indexed_at TEXT NOT NULL 183 + ); 184 + 185 + CREATE INDEX IF NOT EXISTS idx_mentions_talk ON mentions(talk_uri, talk_offset_ms); 186 + CREATE INDEX IF NOT EXISTS idx_mentions_parent ON mentions(parent_uri); 187 + 168 188 CREATE TABLE IF NOT EXISTS profiles ( 169 189 did TEXT PRIMARY KEY, 170 190 handle TEXT,