nodebb-plugin-mentions 4.6.3 → 4.6.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.
Files changed (2) hide show
  1. package/library.js +1 -1
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -113,7 +113,7 @@ Mentions.notify = async function ({ post }) {
113
113
 
114
114
  if (Array.isArray(tag) && tag.length) {
115
115
  const slugs = tag.reduce((slugs, tag) => {
116
- if (tag.type === 'Mention') {
116
+ if (tag.type === 'Mention' && tag.name && typeof tag.name === 'string') {
117
117
  const [slug, hostname] = tag.name.slice(1).split('@');
118
118
  if (hostname === nconf.get('url_parsed').hostname) {
119
119
  slugs.push(slug);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "4.6.3",
3
+ "version": "4.6.4",
4
4
  "description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username",
5
5
  "main": "library.js",
6
6
  "repository": {