From d04b280645f9a5379b41d05a79db73e7d801d5c7 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Fri, 27 Jan 2023 21:27:32 -0600 Subject: [PATCH] Limit reference chain depth to 1 for negative citations --- forum-network/src/classes/forum.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/forum-network/src/classes/forum.js b/forum-network/src/classes/forum.js index aa95bdf..213f201 100644 --- a/forum-network/src/classes/forum.js +++ b/forum-network/src/classes/forum.js @@ -113,7 +113,11 @@ export class Forum extends ReputationHolder { async propagateValue(rewardsAccumulator, fromActor, post, increment, depth = 0) { if (params.referenceChainLimit >= 0 && depth > params.referenceChainLimit) { - return []; + return increment; + } + + if (increment < 0 && depth > 1) { + return increment; } this.actions.propagateValue.log(fromActor, post, `(${increment})`);