forked from gitroomhq/postiz-app
-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(sync): merge upstream main (Mastra 1.67, CopilotKit 1.72, MCP ChatGPT app, provider fixes) #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
chore(sync): merge upstream main (Mastra 1.67, CopilotKit 1.72, MCP ChatGPT app, provider fixes) #40
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
f413af6
fix(facebook): return video/reel analytics instead of erroring on the…
giladresisi 03bea3d
fix(linkedin-page): namespace step-1 internalId so page connect can't…
giladresisi 8f92a37
fix(pinterest): read pin analytics from summary_metrics instead of li…
giladresisi 96e46cf
fix(tiktok): correct picture_size_check_failed message and pre-check …
giladresisi 8bcb2f5
fix(facebook): flag channels that hold a non-page token as needing re…
giladresisi fa69f42
fix(facebook): map (#200) permission errors to a curated message
giladresisi cd1e40d
fix(instagram): map (#200) permission errors to a curated message too
giladresisi 5d3acd7
fix: reddit settings type only accepts self, link, media
giladresisi cf0c8ff
fix(bluesky): surface the underlying error when preparation keeps fai…
giladresisi 3000fdd
fix(reddit): strip leading/trailing slashes from subreddit names
giladresisi b52cd59
fix(reddit): also strip a prefix-less r/ from subreddit names
giladresisi bd781c1
fix: count Threads post length in UTF-8 bytes
giladresisi d0c5d7c
feat(admin-stats): active orgs per post creation source
giladresisi 3cbe20b
feat: wallet rejection
nevo-david cf1ff60
Merge branch 'main' into fix/facebook-video-insights
giladresisi 3260cd3
Merge branch 'main' into admin-daily-account-stats
giladresisi 2c2f788
feat(farcaster): migrate from SIWN to Neynar managed signers, fix log…
giladresisi d2246cb
fix(facebook): use META_GRAPH_API_VERSION for video_insights instead …
giladresisi 03fab81
fix(farcaster): keep polling the signer status on network errors
giladresisi 889f87f
fix(farcaster): throttle the public signer creation route
giladresisi f23ebf7
fix(farcaster): throttle the public signer status route
giladresisi d46c7bb
chore: sync lockfile qrcode specifiers
giladresisi 16517c2
fix(farcaster): url-encode the base64 code in redirects
giladresisi 6dbaadb
Merge pull request #2078 from gitroomhq/feat/farcaster-managed-signers
nevo-david 8ce68f1
fix(farcaster): show the approval QR in a modal instead of a blank tab
giladresisi 9b06ea2
Merge pull request #2080 from gitroomhq/fix/farcaster-qr-modal
nevo-david 06381f0
Merge pull request #1669 from gitroomhq/fix/facebook-video-insights
giladresisi 08de8cc
Merge pull request #1946 from gitroomhq/fix/threads-byte-length
giladresisi 6376fd9
Merge pull request #1997 from gitroomhq/admin-daily-account-stats
giladresisi 07ebfc7
Merge pull request #1767 from gitroomhq/fix/linkedin-page-hijacks-per…
giladresisi a371160
Merge pull request #1851 from gitroomhq/fix/pinterest-post-analytics
giladresisi a20d023
Merge pull request #1875 from gitroomhq/fix/tiktok-picture-size-message
giladresisi a15519a
Merge pull request #1881 from gitroomhq/fix/facebook-page-token-error…
giladresisi 79963b5
Merge pull request #1915 from gitroomhq/fix/reddit-type-values
giladresisi 85b42a5
Merge pull request #1929 from gitroomhq/fix/bluesky-surface-prep-error
giladresisi 12136dc
Merge pull request #1930 from gitroomhq/fix/reddit-subreddit-slashes
giladresisi 522a0f4
Merge remote-tracking branch 'origin/main' into fix/facebook-200-perm…
giladresisi 73f5e2d
fix(sentry): sample traces and session replays to stay under quota
giladresisi 0a4301e
Merge pull request #1892 from gitroomhq/fix/facebook-200-permission-m…
giladresisi c182d16
Merge pull request #2082 from gitroomhq/fix/sentry-usage-limits
giladresisi f091f54
fix(media): open the Change Bot Picture media picker as a modal
giladresisi 0b26c98
fix(bluesky): only mark the channel disconnected on a 4xx login failure
giladresisi ed721b4
fix(frontend): reconnect custom-fields channels through the credentia…
giladresisi 19f095f
fix(sentry): lower profiling even further
egelhaus 3212ad5
Merge pull request #2084 from gitroomhq/fix/bluesky-login-transient-e…
giladresisi b193042
fix: resolve the webhook post by releaseId fallback
giladresisi 7f681d4
Merge pull request #2085 from gitroomhq/fix/custom-fields-reconnect-main
giladresisi 43cd3d5
Merge pull request #2083 from gitroomhq/fix/media-box-modal
egelhaus a9aced7
fix(instagram): send collaborators on carousel container instead of c…
giladresisi 0a8c28f
fix(instagram): url-encode collaborators param
giladresisi 1de1537
fix(instagram): strip leading @ from collaborator handles
giladresisi 30ba635
Merge pull request #2088 from gitroomhq/feat/instagram-carousel-colla…
giladresisi 9bb641e
Merge pull request #2087 from gitroomhq/fix/webhook-payload-lookup
giladresisi e2d5b9c
feat: runpod
nevo-david 6fad985
Merge remote-tracking branch 'origin/main'
nevo-david 914b29f
feat: replace
nevo-david b3cace2
fix: runpod
nevo-david 07fd99e
ci: regenerate the lockfile instead of merging it in staging conflicts
egelhaus 118d89c
feat: fix uploading
nevo-david 3c0f8aa
Merge remote-tracking branch 'origin/main'
nevo-david 920da9c
fix(oauth): grant email claims to DCR clients on verified domains
nevo-david 83bd080
Merge pull request #2091 from gitroomhq/fix/oauth-email-claims-verifi…
nevo-david f22d8c8
feat(oauth): accept client_secret_basic on the token endpoint
nevo-david 81d5a16
Merge pull request #2093 from gitroomhq/feat/oauth-client-secret-basic
nevo-david 2a0d688
feat(mcp): separate no-DCR issuer for /mcp-oauth, DCR issuer for the …
nevo-david 48490b8
feat(mcp): serve the ChatGPT app on /mcp-oauth-chatgpt
nevo-david 2688501
fix(customer-modal): replace Mantine Autocomplete with native input t…
giladresisi 6a73376
Merge pull request #2094 from gitroomhq/fix/customer-modal-react19-re…
giladresisi c589175
chore(deps): upgrade Mastra and CopilotKit to latest
nevo-david b267fbe
feat(frontend): hide the Chatbase widget while the creation modal is …
nevo-david facc77d
feat: x-postiz-org override and support debug endpoints on the public…
egelhaus 671b8ea
fix: report current channel counts alongside channels connected in range
egelhaus b4da559
fix: exclude oauth apps from superadmin surfaces and bound the channe…
egelhaus 7c2ac90
fix: restrict the debug endpoints to super admins
egelhaus a1db935
feat: add account overview debug endpoint for dispute evidence
egelhaus 82a10ab
fix: require every privileged member of an admin org to be a superuser
egelhaus 246c3c0
fix: authorize the super admin guard against the calling organization
egelhaus aee9859
fix: make channel health pick one deterministic top-level post per ch…
egelhaus 50ba3ff
Merge branch 'chore/upgrade-mastra'
nevo-david 6b40c64
fix(chat): run the Mastra storage migration at boot with a retry
nevo-david e9245ca
fix(prisma): mirror every Mastra 1.67 table and column in schema.prisma
nevo-david 1207941
revert(chat): drop the boot-time Mastra storage init
nevo-david 2c29ea3
feat(mcp): upload widget for uploading local files from Claude and Ch…
nevo-david b9e80d0
Merge pull request #2099 from gitroomhq/feat/mcp-upload-widget
nevo-david c6bfe13
feat: images preview
nevo-david 1251b5a
feat: hovering and copy
nevo-david 01219ef
Merge pull request #2096 from gitroomhq/feat/public-api-impersonate
egelhaus ee3eaa6
feat(staging-conflicts): stop crashing the workflow
egelhaus 9485ca5
feat: add x-postiz-include-deleted header for the debug endpoints
egelhaus c3e0697
fix: require a search term and allow targeting deleted orgs with the …
egelhaus d539c4e
chore(sync): merge upstream main (Mastra 1.67, CopilotKit 1.72, MCP C…
JOY 8f31206
fix(sync): leftover marker, duplicate agents key, upstream Media stat…
JOY 0892fa2
chore(sync): merge dev (SSO worker retirement) into upstream sync branch
JOY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| import { | ||
| BadRequestException, | ||
| Controller, | ||
| Get, | ||
| Post, | ||
| Req, | ||
| UploadedFile, | ||
| UseInterceptors, | ||
| } from '@nestjs/common'; | ||
| import { Request } from 'express'; | ||
| import { ApiTags } from '@nestjs/swagger'; | ||
| import { Organization } from '@prisma/client'; | ||
| import { FileInterceptor } from '@nestjs/platform-express'; | ||
| import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.request'; | ||
| import { MediaService } from '@gitroom/nestjs-libraries/database/prisma/media/media.service'; | ||
| import { streamUploadOptions } from '@gitroom/nestjs-libraries/upload/multer.stream.engine'; | ||
|
|
||
| @ApiTags('Media') | ||
| @Controller('/media-widget') | ||
| export class MediaWidgetController { | ||
| constructor(private _mediaService: MediaService) {} | ||
|
|
||
| @Post('/upload') | ||
| @UseInterceptors(FileInterceptor('file', streamUploadOptions())) | ||
| async upload( | ||
| @GetOrgFromRequest() org: Organization, | ||
| @Req() req: Request, | ||
| @UploadedFile() file: Express.Multer.File | ||
| ) { | ||
| if (!file) { | ||
| throw new BadRequestException('No file provided'); | ||
| } | ||
| return this._mediaService.saveUploadSessionFile( | ||
| org.id, | ||
| // @ts-ignore | ||
| req.uploadSession, | ||
| file.filename, | ||
| file.path, | ||
| file.originalname | ||
| ); | ||
| } | ||
|
|
||
| @Get('/status') | ||
| status(@GetOrgFromRequest() org: Organization, @Req() req: Request) { | ||
| // @ts-ignore | ||
| return this._mediaService.getUploadSession(org.id, req.uploadSession); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
process.env.FRONTEND_URLis undefined, theoriginarray will containundefined, which can cause issues or runtime errors in some CORS libraries. It is safer to filter out any falsy values from the origins array.