search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

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

use fromRow for publications too

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz 4f50725f 1d4ac9c8

+7 -6
+7 -6
backend/src/db/mod.zig
··· 213 213 if (pub_result) |*res| { 214 214 defer res.deinit(); 215 215 for (res.rows) |row| { 216 + const p = PubQuery.fromRow(Pub, row); 216 217 try jw.beginObject(); 217 218 try jw.objectField("type"); 218 219 try jw.write("publication"); 219 220 try jw.objectField("uri"); 220 - try jw.write(row.text(PubQuery.columnIndex("uri"))); 221 + try jw.write(p.uri); 221 222 try jw.objectField("did"); 222 - try jw.write(row.text(PubQuery.columnIndex("did"))); 223 + try jw.write(p.did); 223 224 try jw.objectField("title"); 224 - try jw.write(row.text(PubQuery.columnIndex("name"))); 225 + try jw.write(p.name); 225 226 try jw.objectField("snippet"); 226 - try jw.write(row.text(PubQuery.columnIndex("snippet"))); 227 + try jw.write(p.snippet); 227 228 try jw.objectField("rkey"); 228 - try jw.write(row.text(PubQuery.columnIndex("rkey"))); 229 + try jw.write(p.rkey); 229 230 try jw.objectField("basePath"); 230 - try jw.write(row.text(PubQuery.columnIndex("base_path"))); 231 + try jw.write(p.base_path); 231 232 try jw.endObject(); 232 233 } 233 234 }