nodebb-theme-persona 15.0.7 → 15.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.0.7",
3
+ "version": "15.0.9",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.14.0"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
  <div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
10
10
  <a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="[[global:lastpost]]"></a>
11
- {{renderContent(./content, ./deleted)}}
11
+ {{txEscape(./content)}}
12
12
  </div>
13
13
  </div>
14
14
  {{{ end }}}
@@ -5,7 +5,7 @@
5
5
  </a>
6
6
 
7
7
  <div component="post/content" class="content mb-3 text-break">
8
- {{renderContent(./content, ./deleted)}}
8
+ {{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{txEscape(./content)}}{{{ end }}}
9
9
  </div>
10
10
 
11
11
  <div class="mb-3">
@@ -9,4 +9,4 @@
9
9
  </small>
10
10
  </div>
11
11
 
12
- <div>{{renderContent(post.content, post.deleted)}}</div>
12
+ <div>{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content))}}{{{ end }}}</div>
@@ -72,7 +72,7 @@
72
72
  <br />
73
73
 
74
74
  <div class="content" component="post/content" itemprop="text">
75
- {{renderContent(posts.content, posts.deleted)}}
75
+ {{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(posts.content)}}{{{ end }}}
76
76
  </div>
77
77
 
78
78
  <div class="post-footer">
@@ -22,7 +22,7 @@
22
22
  <div class="flex-grow-1 d-flex flex-wrap gap-1 position-relative">
23
23
  <h3 component="topic/header" class="title text-break fs-5 fw-semibold m-0 tracking-tight w-100 {{{ if showSelect }}}me-4 me-lg-0{{{ end }}}">
24
24
  <a class="text-reset" href="{{{ if topics.noAnchor }}}#{{{ else }}}{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}{{{ end }}}">
25
- {{renderTitle(./title, ./deleted)}}
25
+ {{{ if ./txTitle }}}{{tx(./title)}}{{{ else }}}{./title}{{{ end }}}
26
26
  </a>
27
27
  </h3>
28
28
  <div component="topic/labels" class="d-flex flex-wrap gap-1 w-100 align-items-center">
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
  <div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
123
123
  <a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="[[global:lastpost]]"></a>
124
- {{renderContent(./teaser.content)}}
124
+ {{txEscape(./teaser.content)}}
125
125
  </div>
126
126
  {{{ end }}}
127
127
  {{{ end }}}