@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.
- package/lib/utils.js +2 -1
- 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 =
|
|
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)) {
|