fixed showing of hidden posts
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.erbosoft.com/amy/amsterdam/config"
|
||||
"git.erbosoft.com/amy/amsterdam/database"
|
||||
@@ -82,6 +83,10 @@ func SetCommunity(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
if err != nil {
|
||||
return AmSendPageData(c, ctxt, "error", echo.NewHTTPError(http.StatusNotFound).SetInternal(err))
|
||||
}
|
||||
var b strings.Builder
|
||||
b.WriteString("/comm/")
|
||||
b.WriteString(ctxt.CurrentCommunity().Alias)
|
||||
ctxt.SetScratch("CommunityLink", b.String())
|
||||
ctxt.SetLeftMenu("community")
|
||||
return next(c)
|
||||
}
|
||||
@@ -128,6 +133,11 @@ func SetConference(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
ctxt.SetScratch("currentConference", conf)
|
||||
ctxt.SetScratch("currentAlias", ctxt.URLParam("confid"))
|
||||
ctxt.SetScratch("levelInConference", myLevel)
|
||||
var b strings.Builder
|
||||
b.WriteString(ctxt.GetScratch("CommunityLink").(string))
|
||||
b.WriteString("/conf/")
|
||||
b.WriteString(ctxt.URLParam("confid"))
|
||||
ctxt.SetScratch("ConferenceLink", b.String())
|
||||
return next(c)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -117,8 +117,8 @@
|
||||
{{ post_cur = p }}
|
||||
{{ post_userName = post_getUserName(p, .) }}
|
||||
{{ post_text = post_getText(p, .) }}
|
||||
{{ post_overrideLine = post_getOverrideLine(p, .) }}
|
||||
{{ post_overrideLink = post_getOverrideLink(p, post_topicPermalink) }}
|
||||
{{ post_overrideLine = post_getOverrideLine(p, advancedControls, .) }}
|
||||
{{ post_overrideLink = post_getOverrideLink(p, advancedControls, post_topicLink) }}
|
||||
{{ post_attach = post_getAttachmentInfo(p, .) }}
|
||||
{{ post_bozo = post_isBozo(p, post_topic, .) }}
|
||||
{{ if showPics }}
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
{{ post_cur = p }}
|
||||
{{ post_userName = post_getUserName(p, .) }}
|
||||
{{ post_text = post_getText(p, .) }}
|
||||
{{ post_overrideLine = post_getOverrideLine(p, .) }}
|
||||
{{ post_overrideLink = post_getOverrideLink(p, post_topicPermalink) }}
|
||||
{{ post_overrideLine = post_getOverrideLine(p, true, .) }}
|
||||
{{ post_overrideLink = post_getOverrideLink(p, true, post_topicLink) }}
|
||||
{{ post_attach = post_getAttachmentInfo(p, .) }}
|
||||
{{ post_bozo = post_isBozo(p, post_topic, .) }}
|
||||
{{ include "singlepost.jet" }}
|
||||
|
||||
Reference in New Issue
Block a user