nodebb-plugin-tenor-gif 3.1.4 → 3.1.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/library.js CHANGED
@@ -47,12 +47,15 @@ plugin.registerFormatting = async (payload) => {
47
47
  };
48
48
 
49
49
  plugin.filterMessagingLoadRoom = (payload) => {
50
- payload.room.composerActions.push({
51
- action: 'tenor-gif',
52
- class: 'd-none d-md-flex',
53
- icon: 'fa-tenor-gif',
54
- title: 'Tenor GIF',
55
- });
50
+ if (payload && payload.room && Array.isArray(payload.room.composerActions)) {
51
+ payload.room.composerActions.push({
52
+ action: 'tenor-gif',
53
+ class: 'd-none d-md-flex',
54
+ icon: 'fa-tenor-gif',
55
+ title: 'Tenor GIF',
56
+ });
57
+ }
58
+
56
59
  return payload;
57
60
  };
58
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-tenor-gif",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -6,7 +6,6 @@
6
6
  img {
7
7
  cursor: pointer;
8
8
  width: 33%;
9
- padding: $spacer * 0.25;
10
9
  &:hover {
11
10
  opacity: 0.8;
12
11
  }
@@ -1,4 +1,4 @@
1
1
  <div class="mb-3 d-flex flex-column gap-2">
2
2
  <input type="text" id="gif-query" class="form-control">
3
- <div id="gif-results" class="d-flex flex-column flex-wrap"></div>
3
+ <div id="gif-results" class="d-flex flex-column flex-wrap gap-1"></div>
4
4
  </div>