Open salmad3 opened 3 days ago
Hello @salmad3 . You mention Hacker News as a reference. There is usually a consensus view on what is accurate technical discussion. But for a general message board, I don't think there should be a "one size fits all" single ranking system. It would be better to have separate moderation groups with their own perspective, and a user can choose which moderation group to subscribe to.
Thanks @jefft0. That’s a good point. This idea was also brought up at some point, but we were thinking to start with a simpler method.
Context:
A simple ranking system is essential for the initial version of
r/boards
. This system will apply to posts (threads and comments) within boards to allow users to vote on content to determine its visibility and importance. The ranking mechanism should integrate with the existingPermissions
interface and focus on core functionality for the MVP.Acceptance Criteria:
[ ] The boards realm homepage includes a README controlled by the AdminDAO (without automatic listing of new or top) boards.
[ ] Includes a
Vote
struct to represent user votes:Example
```go type Vote struct { UserID Address Direction int // 1 for upvote, -1 for downvote Timestamp time.Time TokensDonated uint64 // Only for public boards } ```[ ] A
Votes
field in thePost
struct stores vote information:Example
```go type Post struct { // ... existing fields Votes []Vote }[ ] Leverages a simple
CalculateScore
function:[ ] Provides a
VoteOn
method forPost
that:bp.HasPermission()
Example
[ ] Implements different voting mechanisms for private and public boards:
[ ] For public boards, a mechanism is available to lock donated tokens in the board's treasury
[ ] Includes a
GetTopPosts
function that returns a sorted list of posts based on calculated scores[ ] Unit tests to verify the basic ranking system's behavior
[ ] Implements a simple API endpoint to retrieve top posts for a given board
Notes: