Skip to content

Commit

Permalink
Fix: Inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Nov 5, 2024
1 parent 18db719 commit be1291a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/backend/src/core/InboxRuleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export class InboxRuleService {
}
return false;
}
case 'thisActivityIsNote': {
return isCreate(activity);
}
// 指定されたワードが含まれている
case 'isIncludeThisWord': {
if (isCreate(activity)) {
Expand Down
7 changes: 6 additions & 1 deletion packages/backend/src/models/InboxRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ type CondFormulaValueServerSubMoreThanOrEq = {
value: number;
}

type CondFormulaThisActivityIsNote = {
type : 'thisActivityIsNote'
}

export type InboxRuleCondFormulaValue = { id: string } & (
CondFormulaValueAnd |
CondFormulaValueOr |
Expand All @@ -196,7 +200,8 @@ export type InboxRuleCondFormulaValue = { id: string } & (
CondFormulaValueServerPubLessThanOrEq |
CondFormulaValueServerPubMoreThanOrEq |
CondFormulaValueServerSubLessThanOrEq |
CondFormulaValueServerSubMoreThanOrEq
CondFormulaValueServerSubMoreThanOrEq |
CondFormulaThisActivityIsNote
);

export type InboxRuleAction = {
Expand Down

0 comments on commit be1291a

Please sign in to comment.