[PR #1102] [MERGED] make web picker more resilient to incorrect api responses & fall back to photo in an instagram picker if video url is missing #31885

Closed
opened 2026-07-23 08:56:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: picker-patch


📝 Commits (4)

  • 366279a web/PickerDialog: don't render an item if it has no url
  • f76d40b web/PickerItem: make sure the item url is valid
  • 14556b3 web/PickerDialog: ignore wrong items in an array
  • 4dc7d28 api/instagram: fall back to photo in extractOldPost if video has no url

📊 Changes

3 files changed (+22 additions, -10 deletions)

View changed files

📝 api/src/processing/services/instagram.js (+3 -3)
📝 web/src/components/dialog/PickerDialog.svelte (+3 -1)
📝 web/src/components/dialog/PickerItem.svelte (+16 -6)

📄 Description

closes #1068


🔄 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/1102 **Author:** [@wukko](https://github.com/wukko) **Created:** 2/11/2025 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `main` ← **Head:** `picker-patch` --- ### 📝 Commits (4) - [`366279a`](https://github.com/imputnet/cobalt/commit/366279a3bc319aa1f34f6dc5fbc4932597772b99) web/PickerDialog: don't render an item if it has no url - [`f76d40b`](https://github.com/imputnet/cobalt/commit/f76d40bec4b919c877a1e370aecbb471d33f2a55) web/PickerItem: make sure the item url is valid - [`14556b3`](https://github.com/imputnet/cobalt/commit/14556b319028609b5ee9374caca29b3c141f592e) web/PickerDialog: ignore wrong items in an array - [`4dc7d28`](https://github.com/imputnet/cobalt/commit/4dc7d28696afaff6fe8045e34db97707516a074a) api/instagram: fall back to photo in extractOldPost if video has no url ### 📊 Changes **3 files changed** (+22 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/instagram.js` (+3 -3) 📝 `web/src/components/dialog/PickerDialog.svelte` (+3 -1) 📝 `web/src/components/dialog/PickerItem.svelte` (+16 -6) </details> ### 📄 Description closes #1068 --- <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-07-23 08:56:04 -05:00
Sign in to join this conversation.