Skip to content

Commit

Permalink
SPDX
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Nov 30, 2024
1 parent 6fc6358 commit 8a5835a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/src/core/activitypub/misc/searchableBy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project, yojo-art team
* SPDX-License-Identifier: AGPL-3.0-only
*/

export function parseSearchableByFromTags(tags: string[]): 'public' | 'followersAndReacted' | 'reactedOnly' | 'private' | null {
if (tags.includes('searchable_by_all_users')) return 'public';
if (tags.includes('searchable_by_followers_only')) return 'followersAndReacted';
Expand Down

0 comments on commit 8a5835a

Please sign in to comment.