fedimbed.bluesky: forgot all parts dont have features
This commit is contained in:
parent
e4bcdf6f8a
commit
edc0bf902d
1 changed files with 20 additions and 19 deletions
|
@ -253,6 +253,7 @@ async function bluesky(msg, url, spoiler = false) {
|
||||||
splitString.push({text: mainEmbed.description.substring(start)});
|
splitString.push({text: mainEmbed.description.substring(start)});
|
||||||
|
|
||||||
for (const part of splitString) {
|
for (const part of splitString) {
|
||||||
|
if (part.features)
|
||||||
for (const feature of part.features) {
|
for (const feature of part.features) {
|
||||||
switch (feature.$type) {
|
switch (feature.$type) {
|
||||||
case "app.bsky.richtext.facet#link": {
|
case "app.bsky.richtext.facet#link": {
|
||||||
|
|
Loading…
Reference in a new issue