Skip to content

Commit

Permalink
customcommands: thread editing functions (#1665)
Browse files Browse the repository at this point in the history
* cc/threads: add edit thread functions

Signed-off-by: SoggySaussages <[email protected]>

* customcommands: reorder thread functions

Signed-off-by: SoggySaussages <[email protected]>

* cc/threads: fix editThread invitable

Signed-off-by: SoggySaussages <[email protected]>

---------

Signed-off-by: SoggySaussages <[email protected]>
  • Loading branch information
SoggySaussages authored Jun 12, 2024
1 parent a273469 commit 6b7cc8f
Show file tree
Hide file tree
Showing 6 changed files with 376 additions and 97 deletions.
7 changes: 6 additions & 1 deletion common/templates/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,14 +654,19 @@ func baseContextFuncs(c *Context) {
c.addContextFunc("getThread", c.tmplGetThread)

// thread functions
c.addContextFunc("addThreadMember", c.tmplThreadMemberAdd)
c.addContextFunc("closeThread", c.tmplCloseThread)
c.addContextFunc("createThread", c.tmplCreateThread)
c.addContextFunc("deleteThread", c.tmplDeleteThread)
c.addContextFunc("addThreadMember", c.tmplThreadMemberAdd)
c.addContextFunc("editThread", c.tmplEditThread)
c.addContextFunc("openThread", c.tmplOpenThread)
c.addContextFunc("removeThreadMember", c.tmplThreadMemberRemove)

// forum functions
c.addContextFunc("createForumPost", c.tmplCreateForumPost)
c.addContextFunc("deleteForumPost", c.tmplDeleteThread)
c.addContextFunc("pinForumPost", c.tmplPinForumPost(false))
c.addContextFunc("unpinForumPost", c.tmplPinForumPost(true))

c.addContextFunc("currentUserAgeHuman", c.tmplCurrentUserAgeHuman)
c.addContextFunc("currentUserAgeMinutes", c.tmplCurrentUserAgeMinutes)
Expand Down
Loading

0 comments on commit 6b7cc8f

Please sign in to comment.