a tool for shared writing and social publishing
0
fork

Configure Feed

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

Merge branch 'main' of https://github.com/hyperlink-academy/minilink into feature/polls

celine a2cabe18 ff3f4c5a

+13 -5
+1 -1
actions/getIdentityData.ts
··· 21 21 *, 22 22 custom_domains(*), 23 23 home_leaflet:permission_tokens!identities_home_page_fkey(*, permission_token_rights(*)), 24 - permission_token_on_homepage(created_at, permission_tokens!inner(*, permission_token_rights(*))) 24 + permission_token_on_homepage(created_at, permission_tokens!inner(id, root_entity, permission_token_rights(*))) 25 25 )`, 26 26 ) 27 27 .eq("id", auth_token)
+1 -1
app/[leaflet_id]/page.tsx
··· 34 34 .eq("id", props.params.leaflet_id) 35 35 .single(); 36 36 let rootEntity = res.data?.root_entity; 37 - if (!rootEntity || !res.data) 37 + if (!rootEntity || !res.data || res.data.blocked_by_admin) 38 38 return ( 39 39 <div className="w-screen h-screen flex place-items-center bg-bg-leaflet"> 40 40 <div className="bg-bg-page mx-auto p-4 border border-border rounded-md flex flex-col text-center justify-centergap-1 w-fit">
+2 -2
components/Blocks/TextBlock/RenderYJSFragment.tsx
··· 19 19 return ( 20 20 <BlockWrapper wrapper={wrapper} attrs={attrs}> 21 21 {children.length === 0 ? ( 22 - <br /> 22 + <div /> 23 23 ) : ( 24 24 node 25 25 .toArray() ··· 29 29 ); 30 30 } 31 31 case "hard_break": 32 - return <br />; 32 + return <div />; 33 33 default: 34 34 return null; 35 35 }
+1 -1
components/Toolbar/ListToolbar.tsx
··· 129 129 } 130 130 disabled={ 131 131 !previousBlock?.listData || 132 - previousBlock.listData.depth !== block?.listData?.depth 132 + previousBlock.listData.depth < block?.listData?.depth! 133 133 } 134 134 onClick={() => { 135 135 if (!rep || !block || !previousBlock) return;
+7
supabase/database.types.ts
··· 380 380 } 381 381 permission_tokens: { 382 382 Row: { 383 + blocked_by_admin: boolean | null 383 384 id: string 384 385 root_entity: string 385 386 } 386 387 Insert: { 388 + blocked_by_admin?: boolean | null 387 389 id?: string 388 390 root_entity: string 389 391 } 390 392 Update: { 393 + blocked_by_admin?: boolean | null 391 394 id?: string 392 395 root_entity?: string 393 396 } ··· 815 818 metadata: Json 816 819 updated_at: string 817 820 }[] 821 + } 822 + operation: { 823 + Args: Record<PropertyKey, never> 824 + Returns: string 818 825 } 819 826 search: { 820 827 Args: {
+1
supabase/migrations/20250219192237_add_blocked_by_admin_column_to_permission_tokens.sql
··· 1 + alter table "public"."permission_tokens" add column "blocked_by_admin" boolean;