forked from GNUsocial/gnu-social
Make Twitter Media upload API v1.1 reach us
Now we just have to accept the 'media' or 'media_data' (base64 encoded) POST arguments instead of $_FILES uploads.
This commit is contained in:
@@ -179,8 +179,8 @@ class OembedPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach (array('mimetype', 'url', 'title', 'modified') as $key) {
|
||||
if (!empty($oembed->{$key})) {
|
||||
foreach (array('mimetype', 'url', 'title', 'modified', 'width', 'height') as $key) {
|
||||
if (isset($oembed->{$key}) && !empty($oembed->{$key})) {
|
||||
$enclosure->{$key} = $oembed->{$key};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user