Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored Aug 11, 2024
1 parent a57a1e7 commit 9991606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/backend/src/core/activitypub/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export function getApId(value: string | IObject): string {

/**
* Get ActivityStreams Object type
*
* タイプ判定ができなかった場合に、あえてエラーではなくnullを返すようにしている。
* 詳細: https://github.com/misskey-dev/misskey/issues/14239
*/
export function getApType(value: IObject): string | null {
if (typeof value.type === 'string') return value.type;
Expand Down

0 comments on commit 9991606

Please sign in to comment.