[PR #1152] [MERGED] twitter: add fallback to syndication api, fix some edge cases, and add a gif test #21487

Closed
opened 2026-06-13 04:03:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1152
Author: @wukko
Created: 3/11/2025
Status: Merged
Merged: 3/11/2025
Merged by: @github-actions[bot]

Base: mainHead: twitter-fix


📝 Commits (7)

  • 9639c59 api/twitter: handle empty body properly
  • 69dd37c api/twitter: handle 403 with no cookie in requestTweet()
  • 75b498e api/twitter: add fallback to syndication api
  • 3046058 api/tests/twitter: add a gif test
  • 69421a1 api/twitter: refactor, move graphql media extraction to a function
  • 9579c3d api/twitter: fix return in extractGraphqlMedia
  • 39b6bb2 api/twitter: change const to let for media

📊 Changes

2 files changed (+111 additions, -28 deletions)

View changed files

📝 api/src/processing/services/twitter.js (+102 -28)
📝 api/src/util/tests/twitter.json (+9 -0)

📄 Description

closes #1151


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1152 **Author:** [@wukko](https://github.com/wukko) **Created:** 3/11/2025 **Status:** ✅ Merged **Merged:** 3/11/2025 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `main` ← **Head:** `twitter-fix` --- ### 📝 Commits (7) - [`9639c59`](https://github.com/imputnet/cobalt/commit/9639c599f0ed5c15cb7b79b222a70bdf6d0da5e7) api/twitter: handle empty body properly - [`69dd37c`](https://github.com/imputnet/cobalt/commit/69dd37c5c3368765e4190d65ba497588cc96c804) api/twitter: handle 403 with no cookie in `requestTweet()` - [`75b498e`](https://github.com/imputnet/cobalt/commit/75b498ed77e3ad917245cb0f9220d8a7b9b7e269) api/twitter: add fallback to syndication api - [`3046058`](https://github.com/imputnet/cobalt/commit/30460586c4eef58d5ce0359bc9bf634c9e5547de) api/tests/twitter: add a gif test - [`69421a1`](https://github.com/imputnet/cobalt/commit/69421a11ad00c8e4d6b03bba9c10417144585f71) api/twitter: refactor, move graphql media extraction to a function - [`9579c3d`](https://github.com/imputnet/cobalt/commit/9579c3dd08e7cd49acaa1407cc0d87e3da0506b6) api/twitter: fix return in extractGraphqlMedia - [`39b6bb2`](https://github.com/imputnet/cobalt/commit/39b6bb2593c9614d88e9cd91327460dd10e5a74c) api/twitter: change const to let for media ### 📊 Changes **2 files changed** (+111 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/twitter.js` (+102 -28) 📝 `api/src/util/tests/twitter.json` (+9 -0) </details> ### 📄 Description closes #1151 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-13 04:03:36 -05:00
Sign in to join this conversation.