Skip to content

Commit 7f1bf95

Browse files
committed
fix: remove auto-subscribe on voting
1 parent 6fb10d8 commit 7f1bf95

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/services/sqlstore/postgres/vote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func addVote(ctx context.Context, c *cmd.AddVote) error {
5252
return errors.Wrap(err, "failed add vote to post")
5353
}
5454

55-
return internalAddSubscriber(trx, c.Post, tenant, c.User, false)
55+
return nil
5656
})
5757
}
5858

@@ -67,7 +67,7 @@ func removeVote(ctx context.Context, c *cmd.RemoveVote) error {
6767
return errors.Wrap(err, "failed to remove vote from post")
6868
}
6969

70-
return err
70+
return nil
7171
})
7272
}
7373

public/components/layout/Stack.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const Stack = (props: StackProps, dir: "x" | "y") => {
2121
[`flex--spacing-${spacing}`]: spacing > 0 && !props.divide,
2222
[`flex--divide-${spacing}`]: spacing > 0 && !!props.divide,
2323
"flex-items-center": dir === "x" && props.center !== false,
24-
[`justify-${props.justify}`]: props.justify,
24+
"justify-between": props.justify === "between",
25+
"justify-evenly": props.justify === "evenly",
26+
"justify-full": props.justify === "full",
27+
"justify-center": props.justify === "center",
2528
})
2629

2730
return (

0 commit comments

Comments
 (0)