From 5c65c304c78403f9fb607588c0f152e789e2c192 Mon Sep 17 00:00:00 2001 From: ItsRauf <31735267+ItsRauf@users.noreply.github.com> Date: Mon, 2 Mar 2026 00:51:14 -0600 Subject: [PATCH 1/3] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20chore(deps):=20update?= =?UTF-8?q?=20turborepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 58 +++++++++++++++++++++++++------------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index b099ac7..94ad8f7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "commitlint-config-gitmoji": "^2.3.1", "gitmoji-cli": "^9.7.0", "lefthook": "^2.0.12", - "turbo": "^2.7.0", + "turbo": "^2.8.12", "typescript": "^5.9.3" }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 092b2e8..bccd7a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,8 +39,8 @@ importers: specifier: ^2.0.12 version: 2.0.12 turbo: - specifier: ^2.7.0 - version: 2.7.0 + specifier: ^2.8.12 + version: 2.8.12 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -3316,38 +3316,38 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - turbo-darwin-64@2.7.0: - resolution: {integrity: sha512-gwqL7cJOSYrV/jNmhXM8a2uzSFn7GcUASOuen6OgmUsafUj9SSWcgXZ/q0w9hRoL917hpidkdI//UpbxbZbwwg==} + turbo-darwin-64@2.8.12: + resolution: {integrity: sha512-EiHJmW2MeQQx+21x8hjMHw/uPhXt9PIxvDrxzOtyVwrXzL0tQmsxtO4qHf2l7uA+K6PUJ4+TjY1MHZDuCvWXrw==} cpu: [x64] os: [darwin] - turbo-darwin-arm64@2.7.0: - resolution: {integrity: sha512-f3F5DYOnfE6lR6v/rSld7QGZgartKsnlIYY7jcF/AA7Wz27za9XjxMHzb+3i4pvRhAkryFgf2TNq7eCFrzyTpg==} + turbo-darwin-arm64@2.8.12: + resolution: {integrity: sha512-cbqqGN0vd7ly2TeuaM8k9AK9u1CABO4kBA5KPSqovTiLL3sORccn/mZzJSbvQf0EsYRfU34MgW5FotfwW3kx8Q==} cpu: [arm64] os: [darwin] - turbo-linux-64@2.7.0: - resolution: {integrity: sha512-KsC+UuKlhjCL+lom10/IYoxUsdhJOsuEki72YSr7WGYUSRihcdJQnaUyIDTlm0nPOb+gVihVNBuVP4KsNg1UnA==} + turbo-linux-64@2.8.12: + resolution: {integrity: sha512-jXKw9j4r4q6s0goSXuKI3aKbQK2qiNeP25lGGEnq018TM6SWRW1CCpPMxyG91aCKrub7wDm/K45sGNT4ZFBcFQ==} cpu: [x64] os: [linux] - turbo-linux-arm64@2.7.0: - resolution: {integrity: sha512-1tjIYULeJtpmE/ovoI9qPBFJCtUEM7mYfeIMOIs4bXR6t/8u+rHPwr3j+vRHcXanIc42V1n3Pz52VqmJtIAviw==} + turbo-linux-arm64@2.8.12: + resolution: {integrity: sha512-BRJCMdyXjyBoL0GYpvj9d2WNfMHwc3tKmJG5ATn2Efvil9LsiOsd/93/NxDqW0jACtHFNVOPnd/CBwXRPiRbwA==} cpu: [arm64] os: [linux] - turbo-windows-64@2.7.0: - resolution: {integrity: sha512-KThkAeax46XiH+qICCQm7R8V2pPdeTTP7ArCSRrSLqnlO75ftNm8Ljx4VAllwIZkILrq/GDM8PlyhZdPeUdDxQ==} + turbo-windows-64@2.8.12: + resolution: {integrity: sha512-vyFOlpFFzQFkikvSVhVkESEfzIopgs2J7J1rYvtSwSHQ4zmHxkC95Q8Kjkus8gg+8X2mZyP1GS5jirmaypGiPw==} cpu: [x64] os: [win32] - turbo-windows-arm64@2.7.0: - resolution: {integrity: sha512-kzI6rsQ3Ejs+CkM9HEEP3Z4h5YMCRxwIlQXFQmgXSG3BIgorCkRF2Xr7iQ2i9AGwY/6jbiAYeJbvi3yCp+noFw==} + turbo-windows-arm64@2.8.12: + resolution: {integrity: sha512-9nRnlw5DF0LkJClkIws1evaIF36dmmMEO84J5Uj4oQ8C0QTHwlH7DNe5Kq2Jdmu8GXESCNDNuUYG8Cx6W/vm3g==} cpu: [arm64] os: [win32] - turbo@2.7.0: - resolution: {integrity: sha512-1dUGwi6cSSVZts1BwJa/Gh7w5dPNNGsNWZEAuRKxXWME44hTKWpQZrgiPnqMc5jJJOovzPK5N6tL+PHYRYL5Wg==} + turbo@2.8.12: + resolution: {integrity: sha512-auUAMLmi0eJhxDhQrxzvuhfEbICnVt0CTiYQYY8WyRJ5nwCDZxD0JG8bCSxT4nusI2CwJzmZAay5BfF6LmK7Hw==} hasBin: true type-fest@0.21.3: @@ -6549,32 +6549,32 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - turbo-darwin-64@2.7.0: + turbo-darwin-64@2.8.12: optional: true - turbo-darwin-arm64@2.7.0: + turbo-darwin-arm64@2.8.12: optional: true - turbo-linux-64@2.7.0: + turbo-linux-64@2.8.12: optional: true - turbo-linux-arm64@2.7.0: + turbo-linux-arm64@2.8.12: optional: true - turbo-windows-64@2.7.0: + turbo-windows-64@2.8.12: optional: true - turbo-windows-arm64@2.7.0: + turbo-windows-arm64@2.8.12: optional: true - turbo@2.7.0: + turbo@2.8.12: optionalDependencies: - turbo-darwin-64: 2.7.0 - turbo-darwin-arm64: 2.7.0 - turbo-linux-64: 2.7.0 - turbo-linux-arm64: 2.7.0 - turbo-windows-64: 2.7.0 - turbo-windows-arm64: 2.7.0 + turbo-darwin-64: 2.8.12 + turbo-darwin-arm64: 2.8.12 + turbo-linux-64: 2.8.12 + turbo-linux-arm64: 2.8.12 + turbo-windows-64: 2.8.12 + turbo-windows-arm64: 2.8.12 type-fest@0.21.3: {} From 6e92a04a0c2a3b0fc404cfecc509bb11d8c038df Mon Sep 17 00:00:00 2001 From: ItsRauf <31735267+ItsRauf@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:28:23 -0700 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20feat(platforms):=20display?= =?UTF-8?q?=20articles=20from=20twitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/platforms/src/Twitter.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/platforms/src/Twitter.ts b/packages/platforms/src/Twitter.ts index 5b99786..3a1f332 100644 --- a/packages/platforms/src/Twitter.ts +++ b/packages/platforms/src/Twitter.ts @@ -122,6 +122,7 @@ export class Twitter extends EmbedlyPlatform { if (tweet_data.translation?.text) { embed.setDescription(tweet_data.translation.text); } + if (tweet_data.media) { embed.setMedia( tweet_data.media.all.map((media: any) => ({ @@ -132,6 +133,19 @@ export class Twitter extends EmbedlyPlatform { })) ); } + + if (tweet_data.article) { + embed.setDescription(tweet_data.article.preview_text); + embed.setMedia([ + { + media: { + url: tweet_data.article.cover_media.media_info + .original_img_url + } + } + ]); + } + if (tweet_data.replying_to_status) { const reply_tweet = await this.fetchPost( tweet_data.replying_to_status From 99fe671458b85bb05a95795d79479c68cb40b3ec Mon Sep 17 00:00:00 2001 From: ItsRauf <31735267+ItsRauf@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:49:40 -0700 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20feat(platforms):=20display?= =?UTF-8?q?=20articles=20from=20twitter=20quotes=20and=20replies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/nine-mammals-hear.md | 5 +++++ packages/platforms/src/Twitter.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .changeset/nine-mammals-hear.md diff --git a/.changeset/nine-mammals-hear.md b/.changeset/nine-mammals-hear.md new file mode 100644 index 0000000..7b6a563 --- /dev/null +++ b/.changeset/nine-mammals-hear.md @@ -0,0 +1,5 @@ +--- +"@embedly/platforms": patch +--- + +display articles from twitter diff --git a/packages/platforms/src/Twitter.ts b/packages/platforms/src/Twitter.ts index 3a1f332..0c6dd4f 100644 --- a/packages/platforms/src/Twitter.ts +++ b/packages/platforms/src/Twitter.ts @@ -166,6 +166,19 @@ export class Twitter extends EmbedlyPlatform { })) ); } + + if (reply_tweet.article) { + reply_embed.setDescription(reply_tweet.article.preview_text); + reply_embed.setMedia([ + { + media: { + url: reply_tweet.article.cover_media.media_info + .original_img_url + } + } + ]); + } + embed.setReplyingTo(reply_embed); } else if (tweet_data.quote) { const quote_tweet = tweet_data.quote; @@ -185,6 +198,19 @@ export class Twitter extends EmbedlyPlatform { })) ); } + + if (quote_tweet.article) { + quote_embed.setDescription(quote_tweet.article.preview_text); + quote_embed.setMedia([ + { + media: { + url: quote_tweet.article.cover_media.media_info + .original_img_url + } + } + ]); + } + embed.setQuote(quote_embed); } return embed;