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 031939a commit 15ccd3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/activitypub/ApInboxService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ export class ApInboxService {
const rules = await this.inboxRuleRepository.find();
for (const rule of rules) {
const result = await this.inboxRuleService.evalCond(activity, actor, rule.condFormula);
console.log('result');
console.log(result);
console.log(rule.action.type);
console.log('result END');
if (result && rule.action.type === 'reject') {
await this.moderationLogService.log(actor, 'inboxRejected', {
activity,
Expand Down

0 comments on commit 15ccd3e

Please sign in to comment.