Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Nov 5, 2024
1 parent 33a0adb commit 3360f2e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/backend/src/core/InboxRuleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ export class InboxRuleService {
// メンション数が指定値以上
case 'maxMentionsMoreThanOrEq': {
if (isNote(activity)) {
console.log('apMentions');
console.log(apMentions.length);
console.log(value.value);
console.log('apMentionsEnd');

const apMentions = await this.apMentionService.extractApMentions(activity.tag as unknown as IPost, this.apResolverService.createResolver());
return apMentions.length ? apMentions.length >= value.value : false;
}
Expand All @@ -119,20 +114,11 @@ export class InboxRuleService {
// 添付ファイル数が指定値以上
case 'attachmentFileMoreThanOrEq': {
if (isNote(activity)) {
console.log('attachment');
console.log(activity.attachment?.length);
console.log(value.value);
console.log(activity.attachment?.length ? activity.attachment.length >= value.value : false);
console.log('attachmentEnd');
return activity.attachment?.length ? activity.attachment.length >= value.value : false;
}
return false;
}
case 'thisActivityIsNote': {
console.log('thisActivityIsNote');
console.log(isNote(activity.object));
console.log(activity.object);
console.log('thisActivityIsNoteEnd');
return isNote(activity.object);
}
// 指定されたワードが含まれている
Expand Down Expand Up @@ -165,10 +151,6 @@ export class InboxRuleService {
}
// このサーバーのユーザーをフォローしているユーザーの数が~以下
case 'serverSubLessThanOrEq': {
console.log('serverSubLessThanOrEq');
console.log(instance.followingCount);
console.log(value.value);
console.log('serverSubLessThanOrEqEnd');
return instance.followingCount <= value.value;
}
// このサーバーのユーザーをフォローしているユーザーの数が~以上
Expand Down

0 comments on commit 3360f2e

Please sign in to comment.