Skip to content

Commit

Permalink
fix styling on suggested users, remove filter on which subscribed com…
Browse files Browse the repository at this point in the history
…ments are shown
  • Loading branch information
darkruby501 committed May 15, 2024
1 parent 824509c commit dc49213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const styles = (theme: ThemeType) => ({
marginTop: 10,
marginBottom: 10,
background: theme.palette.panelBackground.recentDiscussionThread,
paddingTop: 18,
paddingTop: 12,
paddingLeft: 16,
paddingRight: 16,
paddingBottom: 12,
Expand Down
5 changes: 3 additions & 2 deletions packages/lesswrong/server/repos/PostsRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ class PostsRepo extends AbstractRepo<"Posts"> {
async getPostsAndCommentsFromSubscriptions(userId: string, numDays: number): Promise<Array<PostAndCommentsResultRow >> {
return await this.getRawDb().manyOrNone<PostAndCommentsResultRow>(`
WITH user_subscriptions AS (
SELECT DISTINCT "displayName", type, "documentId" AS "userId"
SELECT DISTINCT type, "documentId" AS "userId"
FROM "Subscriptions" s
LEFT JOIN "Users" u ON u._id = s."documentId"
WHERE state = 'subscribed'
Expand Down Expand Up @@ -816,7 +816,8 @@ class PostsRepo extends AbstractRepo<"Posts"> {
FROM "Comments" c
JOIN user_subscriptions us USING ("userId")
WHERE c."postedAt" > CURRENT_TIMESTAMP - INTERVAL $2
AND (c."baseScore" >= 5 OR (c.contents->>'wordCount')::numeric >= 200)
-- TODO: maybe reintroduce this filter?
-- AND (c."baseScore" >= 5 OR (c.contents->>'wordCount')::numeric >= 200)
AND c.deleted IS NOT TRUE
AND c."authorIsUnreviewed" IS NOT TRUE
AND c.retracted IS NOT TRUE
Expand Down

0 comments on commit dc49213

Please sign in to comment.