nodebb-theme-persona 14.0.4 → 14.0.6

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": "14.0.4",
3
+ "version": "14.0.6",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
package/public/persona.js CHANGED
@@ -193,7 +193,8 @@ $(document).ready(function () {
193
193
  if (parseInt(app.user.uid, 10) === parseInt(data.uid, 10) || !app.user.uid) {
194
194
  card.find('.btn-morph').hide();
195
195
  } else {
196
- setupFavouriteMorph(card, data.uid, data.username);
196
+ const uid = isFinite(data.uid) ? data.uid : encodeURIComponent(data.userslug);
197
+ setupFavouriteMorph(card, uid, data.username);
197
198
 
198
199
  if (isFollowing) {
199
200
  $('.btn-morph').addClass('heart');
@@ -212,7 +213,8 @@ $(document).ready(function () {
212
213
  }
213
214
 
214
215
  function setupFavouriteButtonOnProfile() {
215
- setupFavouriteMorph($('[component="account/cover"]'), ajaxify.data.uid, ajaxify.data.username);
216
+ const uid = isFinite(ajaxify.data.uid) ? ajaxify.data.uid : encodeURIComponent(ajaxify.data.userslug);
217
+ setupFavouriteMorph($('[component="account/cover"]'), uid, ajaxify.data.username);
216
218
  }
217
219
 
218
220
  function setupCardRemoval(card) {
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
 
18
18
  <div class="topic-header sticky-top mb-3 bg-body">
19
- <div class="d-flex gap-3 flew-wrap border-bottom pb-2 align-items-start">
19
+ <div class="d-flex gap-3 flex-wrap border-bottom pb-2 align-items-start">
20
20
  <div class="d-flex flex-column gap-2 flex-grow-1">
21
21
  <h1 component="post/header" class="mb-0" itemprop="name">
22
22
  <div class="topic-title d-flex">
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  </div>
58
58
  </div>
59
- <div class="d-flex gap-2 justify-content-end align-items-center hidden-empty" component="topic/thumb/list">
59
+ <div class="d-flex flex-wrap gap-2 justify-content-end align-items-center hidden-empty" component="topic/thumb/list">
60
60
  {{{ each thumbs }}}
61
61
  <a class="d-inline-block h-100" href="{./url}">
62
62
  <img class="rounded-1 h-100 bg-light" style="max-width: 4rem; object-fit: contain;" src="{./url}" />