Fixup reference chain limit enforcement

This commit is contained in:
Ladd Hoffman 2023-01-28 08:24:39 -06:00
parent 94200b59d4
commit 667a051c13
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export class Forum extends ReputationHolder {
// Recursively distribute reputation to citations, according to weights
let totalOutboundAmount = 0;
if (params.referenceChainLimit >= 0 && depth <= params.referenceChainLimit) {
if (params.referenceChainLimit === null || depth <= params.referenceChainLimit) {
for (const { postId: citedPostId, weight } of post.citations) {
const citedPost = this.getPost(citedPostId);
let outboundAmount = weight * increment;