Skip to content

Commit

Permalink
fix: don't put quote into cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Dec 24, 2023
1 parent e61584b commit e40bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/moderation/decisions/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ModerationResult = { d: ModerationDecision | null; c: unknown[] };
const cached = new WeakMap<EmbeddedPostRecord, ModerationResult>();

export const getQuoteModDecision = (quote: EmbeddedPostRecord, opts: SharedPreferencesObject) => {
const key = [quote, opts.rev];
const key = [opts.rev];

let res = cached.get(quote);

Expand Down

0 comments on commit e40bb58

Please sign in to comment.