[PR #2] [MERGED] Adds fixes to auth and post routes to allow for posting without media #1

Closed
opened 2026-02-16 03:15:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/crossposter/pull/2
Author: @catcarbonell
Created: 2/17/2025
Status: Merged
Merged: 3/12/2025
Merged by: @seldo

Base: mainHead: features/allows-text-post


📝 Commits (1)

  • d18f34c Adds fixes to auth and post routes to allow for posting without media

📊 Changes

7 files changed (+221 additions, -88 deletions)

View changed files

📝 frontend/.gitignore (+2 -0)
📝 frontend/next.config.ts (+13 -0)
📝 frontend/package-lock.json (+89 -68)
📝 frontend/package.json (+3 -2)
📝 frontend/src/app/api/auth/[...nextauth]/route.ts (+1 -1)
📝 frontend/src/app/api/post/route.ts (+40 -17)
📝 frontend/src/util/linkedinPostShare.ts (+73 -0)

📄 Description

Hey there! I was only able to test up to a point until I found out one had to pay to use Anthropic's API. I tested out my potential fixes by creating mock clients and they went through. I hope this one works on your side with full-access to the APIs.

api/post/route.ts

L78 -- Addresses a potential fix for Twitter; checks for media, if none, media === "undefined"
L98-L101 -- Commented out potential blocker for posting text-only posts.
L108-L115 -- Created two more results - one for an Organization, and one for an individual
L152-L155 -- Instead of throwing an error, it allows to post with just text, leaving media as "null"

util/linkedinPostShare.ts

L297-L368 -- Adds methods for posting without media for an Org and individuals

Let me know if there's anything else I can do to help!


🔄 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/run-llama/crossposter/pull/2 **Author:** [@catcarbonell](https://github.com/catcarbonell) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 3/12/2025 **Merged by:** [@seldo](https://github.com/seldo) **Base:** `main` ← **Head:** `features/allows-text-post` --- ### 📝 Commits (1) - [`d18f34c`](https://github.com/run-llama/crossposter/commit/d18f34c67eaf64c193115c6e68ac82a2560767e0) Adds fixes to auth and post routes to allow for posting without media ### 📊 Changes **7 files changed** (+221 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `frontend/.gitignore` (+2 -0) 📝 `frontend/next.config.ts` (+13 -0) 📝 `frontend/package-lock.json` (+89 -68) 📝 `frontend/package.json` (+3 -2) 📝 `frontend/src/app/api/auth/[...nextauth]/route.ts` (+1 -1) 📝 `frontend/src/app/api/post/route.ts` (+40 -17) 📝 `frontend/src/util/linkedinPostShare.ts` (+73 -0) </details> ### 📄 Description Hey there! I was only able to test up to a point until I found out one had to pay to use Anthropic's API. I tested out my potential fixes by creating mock clients and they went through. I hope this one works on your side with full-access to the APIs. ### api/post/route.ts L78 -- Addresses a potential fix for Twitter; checks for media, if none, media === "undefined" L98-L101 -- Commented out potential blocker for posting text-only posts. L108-L115 -- Created two more results - one for an Organization, and one for an individual L152-L155 -- Instead of throwing an error, it allows to post with just text, leaving media as "null" ### util/linkedinPostShare.ts L297-L368 -- Adds methods for posting without media for an Org and individuals Let me know if there's anything else I can do to help! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 03:15:37 -05:00
yindo closed this issue 2026-02-16 03:15:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/crossposter#1