bug: Twitter plugin ignores media attachments despite declaring supportsMedia() #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
TwitterService::publish()acceptsarray $mediabut never uses it. The plugin declaressupportsMedia(): trueandgetSupportedMediaTypes(): ['image', 'video', 'gif'], but only posts text via the v2POST /2/tweetsendpoint.Twitter API v2 requires a separate media upload step via the v1.1 media upload endpoint (
POST https://upload.twitter.com/1.1/media/upload.json), then referencing the returnedmedia_idin the tweet payload asmedia.media_ids.Expected behavior
When
$mediais non-empty:media_idsin the tweet JSON bodyCurrent behavior
Media URLs are passed to
publish()but silently ignored. Posts are always text-only.Affected file
source/packages/plg_mokosuitecross_twitter/src/Extension/TwitterService.phpBranch created:
feature/232-bug-twitter-plugin-ignores-media-attachm