nodebb-plugin-facebook-post 1.0.19 → 1.0.20

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 -2
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -157,8 +157,7 @@ async function getPostContext(postData) {
157
157
  if (!topic) return null;
158
158
 
159
159
  const user = await User.getUserFields(post.uid, ['uid', 'username', 'userslug', 'reputation']);
160
- const url = await Topics.getTopicUrl(post.tid);
161
- const topicUrlAbs = absolutizeUrl(url);
160
+ const topicUrlAbs = absolutizeUrl(`/topic/${topic.slug}`);
162
161
 
163
162
  return { post, topic, user, topicUrlAbs };
164
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-facebook-post",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Auto-post new NodeBB topics to a fixed Facebook Page (text + NodeBB uploads + place id).",
5
5
  "main": "library.js",
6
6
  "dependencies": {