all database operations now take a context.Context, which is propagated through from sources
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@
|
||||
<span class="text-sm pt-0.5 flex-shrink-0">🟣</span>
|
||||
<div class="flex-1 mb-2">
|
||||
<a href="/find?mode=COM&catid={{ rx.CatId }}"
|
||||
class="text-blue-700 hover:text-blue-900 font-bold text-base">{{ DisplayExpandCat(rx) }}</a>
|
||||
class="text-blue-700 hover:text-blue-900 font-bold text-base">{{ DisplayExpandCat(rx, .) }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ else if mode == "PST" }}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{{ comm := .CurrentCommunity() }}
|
||||
<div class="mb-2 mt-2">
|
||||
<div class="mb-1">
|
||||
<img src="{{ ExtractCommunityLogo(comm) }}" alt="{{ comm.Name }}" class="w-28 h-16 rounded">
|
||||
<img src="{{ ExtractCommunityLogo(comm, .) }}" alt="{{ comm.Name }}" class="w-28 h-16 rounded">
|
||||
</div>
|
||||
<div class="font-bold mb-1">{{ menu.Title }}</div>
|
||||
{{ ctxt := . }}
|
||||
|
||||
+2
-2
@@ -79,8 +79,8 @@
|
||||
{{ post_overrideLine := "" }}
|
||||
{{ post_overrideLink := "" }}
|
||||
{{ range i, post_cur := posts }}
|
||||
{{ post_userName = post_getUserName(post_cur) }}
|
||||
{{ post_text = post_getText(post_cur) }}
|
||||
{{ post_userName = post_getUserName(post_cur, .) }}
|
||||
{{ post_text = post_getText(post_cur, .) }}
|
||||
{{ post_overrideLine = post_getOverrideLine(post_cur, .) }}
|
||||
{{ post_overrideLink = post_getOverrideLink(post_cur, post_topicPermalink) }}
|
||||
{{ .SubRender("singlepost.jet") | raw }}
|
||||
|
||||
Reference in New Issue
Block a user