3024 Commits

Author SHA1 Message Date
Gilad Resisi
88eb6defbf fix(refresh): log a summary of the refresh error instead of the raw object
The raw error can carry the token request body (client secret, refresh
token) on providers whose refresh fails through the base fetch or a client
library. Log the message, HTTP status and the token endpoint's response
body instead, which is what makes the failure diagnosable.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-23 11:35:10 +07:00
Gilad Resisi
2dee7f0be0 fix(refresh): only the scheduled refresh tolerates unrecognized errors
Tolerating unrecognized refresh errors everywhere meant a dead token on a
provider without a handleErrors override was never flagged: the refresh
that follows a rejected post went through the same code and stayed silent.

The refresh service now takes a tolerateUnknownErrors flag, off by default.
The refreshToken activity turns it on only when the calling workflow is
refreshTokenWorkflow, read from the activity context, so post workflows of
every version (including the still-running v1.0.1 runs that share this
activity) keep disconnecting after a rejected post.

Also add 'disconnect' to the optional handleErrors interface type, which the
base class returns since this branch was opened.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-23 10:13:36 +07:00
Gilad Resisi
aefcccc43b Merge origin/main into fix/refresh-transient-errors 2026-09-23 09:30:37 +07:00
Gilad Resisi
ae1b80f340
Merge pull request #1827 from gitroomhq/fix/tag-deletion-cleanup
fix(tags): clean up post assignments on tag deletion and stop matching soft-deleted tags
2026-09-23 01:38:12 +00:00
Nevo David
5ff9e0b2f6 feat: update readme 2026-09-23 00:01:18 +07:00
Nevo David
c33f2188f8 feat: update readme 2026-09-23 00:00:12 +07:00
Nevo David
87ac77c699 feat: update readme 2026-09-22 23:56:44 +07:00
Nevo David
8b84b0dc27 feat: onboarding v2.24.0 2026-09-22 20:46:21 +07:00
Nevo David
b2548780b6 Merge remote-tracking branch 'origin/main' 2026-09-22 17:59:40 +07:00
Nevo David
dcb5b09e0e fix: allow mov 2026-09-22 17:58:20 +07:00
Gilad Resisi
6577ad8733
Merge pull request #2118 from gitroomhq/fix/slack-reject-video
fix(slack): reject video attachments at save time
2026-09-22 10:35:22 +00:00
Gilad Resisi
c762ace600 Merge origin/main into fix/slack-reject-video 2026-09-22 17:14:32 +07:00
Gilad Resisi
04e60c8bfc
Merge pull request #2117 from gitroomhq/fix/slack-surface-post-errors
fix(slack): surface chat.postMessage failures instead of marking the post published
2026-09-22 07:11:13 +00:00
Gilad Resisi
b7e5037b96 Merge origin/main into fix/slack-reject-video 2026-09-22 13:58:54 +07:00
Gilad Resisi
89121c06a9 Merge origin/main into fix/slack-surface-post-errors 2026-09-22 13:58:34 +07:00
Gilad Resisi
e62ef360e0
Merge pull request #2116 from gitroomhq/feat/reddit-search-by-name
feat(reddit): resolve a pasted r/name or subreddit URL in the subreddit search
2026-09-22 06:55:39 +00:00
Gilad Resisi
df0dd91a9d feat(reddit): only offer public subreddits from the exact r/name lookup
Mirror the subreddit_type === 'public' filter of the search path so a
pasted r/name that points at a private, restricted or archived
subreddit is not offered as a destination the post would fail on.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 13:48:07 +07:00
Gilad Resisi
678acd4adc fix(slack): reject video attachments at save time
The Slack provider sends every attachment as a Block Kit image block,
which Slack only accepts for png / jpg / gif. An mp4 made
chat.postMessage reject the whole message, and the post was still
shown as published.

Add a checkValidity override so a Slack post or comment with an mp4
attachment fails validation with "No video support for Slack, only
images" in the composer, the public API and the MCP schedule tool.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 13:36:58 +07:00
Gilad Resisi
4e83569e56 fix(slack): surface chat.postMessage failures instead of marking the post published
Slack answers HTTP 200 with { ok: false, error } when it rejects a
message. post() and comment() destructured ts off that body and returned
status 'posted' regardless, so a rejected post (e.g. invalid_blocks for
an mp4 in an image block) was marked PUBLISHED with an empty release
URL and nothing in the channel.

Check the response after both chat.postMessage calls: auth errors throw
RefreshToken, ratelimited is retried, everything else throws BadBody
with Slack's error code and detail lines as the message.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 13:36:40 +07:00
Gilad Resisi
398b41e8a4 feat(reddit): resolve a pasted r/name or subreddit URL in the subreddit search
The composer's "Search Subreddit" box sent the typed text verbatim to
Reddit's subreddit search. A pasted reddit.com/r/<name> URL matched
nothing, so there was no result to pick and the subreddit setting was
saved empty, which then failed validation with "value should not be
null or undefined".

When the text contains r/<name>, search by the name alone and put the
exact subreddit first in the results if it exists. Plain text still
sends the same search request as before, and the exact lookup only
swallows a not-found response so token refresh keeps working.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 13:36:21 +07:00
Nevo David
4c835138aa fix: CVE-2026-94456 2026-09-22 11:52:20 +07:00
Nevo David
ab6e4e8e53 Merge remote-tracking branch 'origin/main' 2026-09-22 11:32:32 +07:00
Nevo David
9259cf2429 fix: CVE-2026-94455 2026-09-22 11:32:19 +07:00
Gilad Resisi
4fa33d5216
Merge pull request #2115 from gitroomhq/fix/facebook-reel-insights
fix(facebook): request the reels metrics in video post analytics
2026-09-22 03:47:45 +00:00
Gilad Resisi
9948b072e7 fix(facebook): request the reels metrics in video post analytics
A customer reported that their Facebook posts show no statistics at all;
every one of their Facebook posts is a reel. The video_insights edge
answers a reel with an empty data array for total_video_impressions,
total_video_views and total_video_reactions_by_type_total, so
videoPostAnalytics returned [] and the statistics modal stayed empty.

Verified against a real reel: the same request with fb_reels_total_plays,
post_video_likes_by_reaction_type and post_video_social_actions returns
values, and Graph simply omits whichever metrics do not apply to the
node, so both sets are now requested in one call. Regular videos keep
their existing cases; the new ones map to Plays, Reactions and
Engagement.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014wvGQeFVP1UKfi9VAYYBYK
2026-09-22 10:36:56 +07:00
Gilad Resisi
9c594d2814
Merge pull request #2098 from gitroomhq/fix/facebook-analytics-swallowed-errors
fix(facebook): surface Graph API errors in page analytics instead of caching an empty result
2026-09-22 03:05:37 +00:00
Nevo David
c023843702 feat: update chatgpt submission 2026-09-22 09:57:35 +07:00
Nevo David
6af357dd60 feat: update chatgpt submission 2026-09-22 09:12:22 +07:00
Nevo David
3d3e9eee7a feat: update chatgpt submission 2026-09-22 09:11:31 +07:00
Nevo David
901f84ff7e
Merge pull request #2111 from gitroomhq/feat/clipping-public-api
feat(public-api): clipping endpoints
2026-09-21 07:56:57 +00:00
Nevo David
dac36eda7b feat(public-api): clipping endpoints
Add POST /public/v1/clipping, GET /public/v1/clipping and GET /public/v1/clipping/:id to the public API, calling the existing ClippingService.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:52:45 +07:00
Nevo David
08f0a68b78 Merge remote-tracking branch 'origin/main' 2026-09-21 14:04:33 +07:00
Nevo David
fc14ff16df feat: clipping 2026-09-21 14:03:40 +07:00
Gilad Resisi
e3c9f1fa01
Merge pull request #2108 from gitroomhq/fix/hashnode-api-migration
fix(hashnode): move to the live GraphQL endpoint and current publishPost schema
2026-09-21 06:13:02 +00:00
Gilad Resisi
0ffdbc9773 fix(hashnode): fail once when publishPost returns no post
A response without a post (data: null with no errors array, or a null
publishPost/post) threw a TypeError on destructuring, which is retried and
re-sends the publish mutation. Treat it as BadBody like the errors case.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 12:53:18 +07:00
Gilad Resisi
12978bef19 fix(hashnode): move to the live GraphQL endpoint and current publishPost schema
Hashnode retired gql.hashnode.com on 2026-05-13: every request now gets a
301 to an announcement page, so connecting a channel failed with "Invalid
credentials" for every key, and publishing failed for existing channels.

- point the three calls (authenticate, publications, post) at
  gql-beta.hashnode.com
- send tags as { slug } (PublishPostTagInput no longer has id); the slug is
  looked up by objectID from the existing tags list, so stored posts keep
  working
- send the cover as coverImage (coverImageOptions was removed from
  PublishPostInput)
- read the GraphQL errors array and throw BadBody with Hashnode's message.
  Hashnode answers HTTP 200 with data: null for refusals such as a
  publication without an active Pro plan, which used to surface as a
  TypeError, get retried, and end as "couldn't confirm it was published"

Fixes #1737

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 12:44:46 +07:00
Gilad Resisi
ce6a7d2815
Merge pull request #2107 from gitroomhq/fix/gmb-release-search-url
fix(gmb): use Google's searchUrl as the post release URL
2026-09-21 05:22:49 +00:00
Enno Gelhaus
30be46ee5c
Merge pull request #2100 from gitroomhq/fix/sentry-skip-mcp-get-traces
fix(sentry): stop tracing GET requests to the MCP streamable routes
2026-09-21 04:37:59 +00:00
Enno Gelhaus
450f0b4486
fix(sentry): reduce tracesSampleRate to 0.1 for better performance 2026-09-21 06:35:36 +02:00
Gilad Resisi
6345ca5766 fix(gmb): use Google's searchUrl as the post release URL
The release URL for every Google My Business post was a hardcoded
https://business.google.com/locations/<locationId> link, which Google
answers with a 404, even for the logged-in profile owner. That link is
what the "published" notification email and the preview point to.

localPosts.create returns a searchUrl for the created post; use it as
the release URL and keep the old link only as a fallback when Google
does not send one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 08:47:49 +07:00
Enno Gelhaus
7cef69c12f
feat(security): enhance GAdvisory scope 2026-09-20 12:20:37 +02:00
Nevo David
6f1078011b
Merge pull request #2104 from gitroomhq/feat/clipping-workflow
feat(clipping): YouTube video clipping workflow (REST + MCP tools + widget)
2026-09-19 15:39:39 +07:00
Nevo David
523aace1ba Merge remote-tracking branch 'origin/main' into feat/clipping-workflow 2026-09-19 15:18:41 +07:00
Nevo David
c7405ff9c8 fix(clipping): never give a draft claim back, draft one channel at a time
createPost writes one post per channel, so a failure on a later channel left
the earlier drafts in place while the released claim let a retry create them
again. The claim now stays, the free slot is looked up before it is taken, and
each channel is drafted on its own so one failing channel does not drop the rest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-19 14:39:38 +07:00
Nevo David
f5d83b19f6 fix(clipping): close the clip and draft creation races from review
- createClips takes the row of the clipping before looking for clips, so a
  timed out attempt and its retry can no longer both store a set
- a clip is claimed (draftedAt off null) before its draft is created and
  released when creation fails, so a retry cannot draft it twice
- urls are stripped from the logged processor failure
- Turkish billing label reads correctly after the number

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-19 14:22:48 +07:00
Nevo David
9aad99cde1 feat(clipping): YouTube video clipping workflow with REST, MCP tools and widget
Turns a YouTube video into captioned vertical clips that land in the media
library and as draft posts. Adds the Clipping / ClippingClip models, the
clipping_minutes credit type, clippingWorkflow + per-clip child workflows,
the /clipping REST routes, the MCP clipping tools and the ui://postiz/clipping
status widget.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-19 13:58:02 +07:00
Enno Gelhaus
c3e06973c8
fix: require a search term and allow targeting deleted orgs with the include-deleted header 2026-09-18 17:24:05 +02:00
Enno Gelhaus
9485ca502d
feat: add x-postiz-include-deleted header for the debug endpoints 2026-09-18 17:15:23 +02:00
Enno Gelhaus
ee3eaa608e
feat(staging-conflicts): stop crashing the workflow 2026-09-18 17:02:04 +02:00
Enno Gelhaus
01219ef9b0
Merge pull request #2096 from gitroomhq/feat/public-api-impersonate
feat: superuser public API endpoints
2026-09-18 14:28:13 +00:00