You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added dry-run and lint workflow.\n\nContainer dry-run test command:\n\nshell\ntask up:dry-run\n\n\nDetached dry-run:\n\nshell\ntask up:dry-run:detached\ntask logs\n\n\nLocal smoke test passed with your ignored .env: the container started, authorized as @shitpost_engine_bot, and logged Dry-run mode enabled. Messages will not be posted.\n\nValidation run:\n- task validate\n- docker compose config\n- detached dry-run container startup/log check\n\nCI now checks:\n- gofmt\n- go vet\n- go build\n- go test
Fixed the downloads permission issue.\n\nRoot cause: with rootless Podman, the non-root bun user inside the container could not write to the host bind mount at ./downloads:/app/downloads.\n\nFixes pushed:\n- Run the runtime container as root inside the container for bind-mount compatibility. In rootless Podman this maps to the host user.\n- Ensure Taskfile starts create downloads/ before Compose starts.\n- Redact Telegram bot tokens from file download URLs in logs.\n\nValidated:\n- task validate\n- rebuilt dry-run container\n- touch /app/downloads/.write-test inside the container succeeds\n- bot starts in dry-run mode and authorizes as @shitpost_engine_bot
Fixed the Telegram message caption is too long issue.\n\nRoot cause: when crosspost failed, the bot tried to send the original media back with full stdout/stderr logs in the media caption. Telegram media captions are much shorter than normal messages.\n\nFix:\n- Media acknowledgement uses only the original caption.\n- Crosspost status/logs are sent as separate text messages.\n- Long logs are split into Telegram-safe chunks.\n\nCommit: be624b0 fix: avoid oversized Telegram log captions
X retest result after corrected access token/secret:\n\n- X-only text post now reaches X with x-access-level: read-write, so the OAuth token/secret are accepted.\n- X still rejects the post with 402 CreditsDepleted: Your enrolled account ... does not have any credits to fulfill this request.\n\nSo the current Twitter/X blocker is no longer credentials. It is X API credits for write requests.\n\nI also pushed task doctor and env alias normalization so the bot can use canonical TWITTER_* keys or aliases like consumer_key, consumer_key_secret, access_token, and access_token_secret before invoking crosspost.\n\nCommit: ca75144 feat: normalize env aliases for crosspost
Fixed Mastodon image upload in the container.\n\nRoot cause: the installed @humanwhocodes/crosspost package sends Mastodon media as a Bun Blob without a filename. Mastodon rejects that as 422 Validation failed: File can't be blank.\n\nFix: patch the installed crosspost Mastodon strategy during Docker build to append a filename to the FormData file field.\n\nValidated Mastodon-only image+caption post succeeded:\nhttps://mastodon.social/@bupd/116748523513085676\n\nThe bot has been rebuilt/restarted with the patched image.\n\nCommit: 990ed76 fix: patch Mastodon media uploads in container
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
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.
Summary
Verification
Related