moderated

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Relay *khatru.Relay
)

Functions

func GetApprovalTarget added in v1.4.0

func GetApprovalTarget() int

func GetVoteTotal added in v1.4.0

func GetVoteTotal(id nostr.ID) int

func GetVoteWorth added in v1.4.0

func GetVoteWorth(approver nostr.PubKey) int

GetVoteWorth returns how many points a single vote from the given member is worth, based on the configured approval_votes_spec:

  • empty or a single number: every vote is worth that number (default 100)
  • slash-separated pattern like "50/25/13": each pyramid level has its own worth (level 1 is worth 50, level 2 is worth 25, ...), while root members (level 0) are always worth 100.

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL