ssbc / ssb-social-index

scuttlebutt plugin for getting reduced state based on the author's social graph
5 stars 2 forks source link

Add option "getSocialValue" to specify alternative algorithm #6

Closed regular closed 3 years ago

regular commented 3 years ago

I have a use case that is 99.9% covered by ssb-social-index, but I need to tweak the algorithm implemented in getSocialValue(). This very simple PR would allow this. What do you think?

In case you are curious about that use case: I have alternative networks, where shs.caps is a feed id. (I called it an 'owned network'). I want that feed to provide network-wide default values for social values.

regular commented 3 years ago

Thanks, André! I go ahead and merge/publish then.