Skip to content

Commit

Permalink
allow DAOs to hide from search
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Apr 3, 2024
1 parent ffc1275 commit 56b014f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/state/indexer/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export const searchDaos = async ({
filter: [
// Exclude inactive DAOs.
`NOT value.config.name IN ["${INACTIVE_DAO_NAMES.join('", "')}"]`,
// Exclude hidden DAOs.
'value.hideFromSearch != true',
...(exclude?.length
? // Exclude DAOs that are in the exclude list.
[`NOT id IN ["${exclude.join('", "')}"]`]
Expand Down
2 changes: 2 additions & 0 deletions packages/types/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export interface IndexerDumpState
proposalCount?: number
// Map polytone note address to remote address.
polytoneProxies?: Record<string, string>
// Hide from search if storage item `hideFromSearch` exists.
hideFromSearch?: boolean
}

export type IndexerUpBlock = {
Expand Down

0 comments on commit 56b014f

Please sign in to comment.