WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
4
fork

Configure Feed

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

fix(appview): replace fabricated editPosts permission with real lockTopics in admin test

space.atbb.permission.editPosts is not defined in the lexicon or any
default role. Swap it for space.atbb.permission.lockTopics so the
GET /api/admin/members/me test uses a real permission value and would
catch a regression that silently dropped a real permission from a role.

Malpercio 4e0ec427 f3159a58

+2 -2
+2 -2
apps/appview/src/routes/__tests__/admin.test.ts
··· 627 627 }).returning({ id: roles.id }); 628 628 await ctx.db.insert(rolePermissions).values([ 629 629 { roleId: moderatorRole.id, permission: "space.atbb.permission.createPosts" }, 630 - { roleId: moderatorRole.id, permission: "space.atbb.permission.editPosts" }, 630 + { roleId: moderatorRole.id, permission: "space.atbb.permission.lockTopics" }, 631 631 ]); 632 632 633 633 // Insert user ··· 658 658 handle: "me.test", 659 659 role: "Moderator", 660 660 roleUri: `at://${ctx.config.forumDid}/space.atbb.forum.role/moderator`, 661 - permissions: ["space.atbb.permission.createPosts", "space.atbb.permission.editPosts"], 661 + permissions: ["space.atbb.permission.createPosts", "space.atbb.permission.lockTopics"], 662 662 }); 663 663 }); 664 664