Limit reference chain depth to 1 for negative citations
This commit is contained in:
parent
4c9cee9963
commit
d04b280645
|
@ -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})`);
|
||||
|
|
Loading…
Reference in New Issue