Skip to content

Commit

Permalink
Merge branch 'devx/feature/boardsv2' into feat/3146-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix authored Jan 6, 2025
2 parents 32c8638 + b8ac6b0 commit bdfde81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/gno.land/r/demo/boards2/post.gno
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ func (post *Post) Render(indent string, levels int) string {

s += indent + "\n"
s += reply.Render(indent+"> ", levels-1)

return false
})
}
Expand Down
1 change: 1 addition & 0 deletions examples/gno.land/r/demo/boards2/public.gno
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func CreateReply(bid BoardID, threadID, replyID PostID, body string) PostID {

// TODO: Assert thread is not locked
// TODO: Assert that caller is a board member (when board type is invite only)

var reply *Post
if replyID == threadID {
// When the parent reply is the thread just add reply to thread
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards2/render.gno
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func renderReply(res *mux.ResponseWriter, req *mux.Request) {
if !found {
res.Write("Reply does not exist with ID: " + rawID)
} else if reply.IsHidden() {
res.Write("Reply with ID: " + rawID + " was hidden")
res.Write("Reply with ID: " + rawID + " has been flagged as inappropriate")
} else {
res.Write(reply.RenderInner())
}
Expand Down

0 comments on commit bdfde81

Please sign in to comment.