Fixup reference chain limit enforcement
This commit is contained in:
parent
94200b59d4
commit
667a051c13
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue