@rmdes/indiekit-syndicator-bluesky 1.0.4 → 1.0.5

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/lib/utils.js +2 -1
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -197,8 +197,9 @@ export const getPostText = (properties, includePermalink) => {
197
197
  }
198
198
 
199
199
  // Truncate status if longer than 300 characters
200
+ // ALWAYS include permalink when truncating so readers can see full post
200
201
  if (text.length > 300) {
201
- const suffix = includePermalink ? `\n\n${properties.url}` : "";
202
+ const suffix = `\n\n${properties.url}`;
202
203
  const maxLen = 300 - suffix.length - 3;
203
204
  text = text.slice(0, maxLen).trim() + "..." + suffix;
204
205
  } else if (includePermalink && !text.includes(properties.url)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-syndicator-bluesky",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Bluesky syndicator for Indiekit with external like support",
5
5
  "type": "module",
6
6
  "main": "index.js",