nodebb-theme-persona 15.1.3 → 15.1.4

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,8 +1,8 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.1.3",
3
+ "version": "15.1.4",
4
4
  "nbbpm": {
5
- "compatibility": "^4.15.0"
5
+ "compatibility": "^4.14.0"
6
6
  },
7
7
  "description": "Persona theme for NodeBB",
8
8
  "main": "library.js",
@@ -36,7 +36,7 @@
36
36
  {{{ end }}}
37
37
 
38
38
  <!-- IF aboutme -->
39
- <div component="aboutme" class="text-center aboutme text-secondary w-75 mx-auto text-center">{{aboutmeParsed}}</div>
39
+ <div component="aboutme" class="text-center aboutme text-secondary w-75 mx-auto text-center">{{txEscape(aboutmeParsed)}}</div>
40
40
  <!-- ENDIF aboutme -->
41
41
 
42
42
  <div class="account-stats fs-1 text-center mb-3">
@@ -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="{{tx("global:lastpost")}}"></a>
11
- {{./content}}
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
- {{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{./content}}{{{ end }}}
8
+ {{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{txEscape(./content)}}{{{ end }}}
9
9
  </div>
10
10
 
11
11
  <div class="mb-3">
@@ -17,7 +17,7 @@
17
17
 
18
18
  {{{ if showAsPosts }}}
19
19
  <div component="post/content" class="content">
20
- {{./content}}
20
+ {{txEscape(./content)}}
21
21
  </div>
22
22
  {{{ end }}}
23
23
 
@@ -9,4 +9,4 @@
9
9
  </small>
10
10
  </div>
11
11
 
12
- <div>{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{post.content}}{{{ end }}}</div>
12
+ <div>{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content)}}{{{ end }}}</div>
@@ -72,12 +72,12 @@
72
72
  <br />
73
73
 
74
74
  <div class="content" component="post/content" itemprop="text">
75
- {{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{posts.content}}{{{ end }}}
75
+ {{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(posts.content)}}{{{ end }}}
76
76
  </div>
77
77
 
78
78
  <div class="post-footer">
79
79
  {{{ if posts.user.signature }}}
80
- <div component="post/signature" data-uid="{posts.user.uid}" class="post-signature">{{posts.user.signature}}</div>
80
+ <div component="post/signature" data-uid="{posts.user.uid}" class="post-signature">{{txEscape(posts.user.signature)}}</div>
81
81
  {{{ end }}}
82
82
 
83
83
  <div class="clearfix">
@@ -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="{{tx("global:lastpost")}}"></a>
124
- {{./teaser.content}}
124
+ {{txEscape(./teaser.content)}}
125
125
  </div>
126
126
  {{{ end }}}
127
127
  {{{ end }}}