Skip to content

Commit

Permalink
Moderate /best
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Feb 4, 2025
1 parent a383edb commit fb3f78a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/best.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ async function getStories(trie, page, period, domain) {
const totalStories = parseInt(env.TOTAL_STORIES, 10);
const from = totalStories * page;
const orderBy = null;
const result = getBest(totalStories, from, orderBy, domain, startDatetime);
let result = getBest(totalStories, from, orderBy, domain, startDatetime);

const policy = await moderation.getLists();
const path = "/best";
result = moderation.moderate(result, policy, path);

let stories = [];
for await (let story of result) {
Expand Down

0 comments on commit fb3f78a

Please sign in to comment.