Exosphere is a set of small, modular, self-hostable community tools built on the AT Protocol. app.exosphere.site
7
fork

Configure Feed

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

fix: handle fr entry update

Hugo d02fb44c 0166a9fd

+16 -1
+16 -1
packages/feature-requests/src/db/operations.ts
··· 32 32 .from(featureRequests) 33 33 .where(eq(featureRequests.id, params.id)) 34 34 .get(); 35 - if (existing) return existing; 35 + if (existing) { 36 + if (existing.authorDid !== params.authorDid) return existing; 37 + if (existing.title !== params.title || existing.description !== params.description) { 38 + const updatedAt = new Date().toISOString(); 39 + tx.update(featureRequests) 40 + .set({ 41 + title: params.title, 42 + description: params.description, 43 + updatedAt, 44 + }) 45 + .where(eq(featureRequests.id, params.id)) 46 + .run(); 47 + return { ...existing, title: params.title, description: params.description, updatedAt }; 48 + } 49 + return existing; 50 + } 36 51 37 52 const number = nextEntryNumber(tx, params.sphereId); 38 53