fix: Change isPublic to correctly recognize as:Public term (#108)

Co-authored-by: Koki Takahashi <hakatasiloving@gmail.com>
This commit is contained in:
まっちゃとーにゅ 2023-07-25 02:42:55 +09:00 committed by GitHub
parent b6d9894ed9
commit 4a2bb601bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ export class ApAudienceService {
private isPublic(id: string): boolean {
return [
'https://www.w3.org/ns/activitystreams#Public',
'as#Public',
'as:Public',
'Public',
].includes(id);
}