aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-17 16:22:13 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-17 16:22:13 -0800
commit62a60e554235c66c88955d16134c874ad560bf72 (patch)
treed50052b9dc13312d9d4b84d0897bba424686a811 /include/attach.php
parent539d06f02dc31a3b16d8c0cfa0cc60b64a78088e (diff)
downloadvolse-hubzilla-62a60e554235c66c88955d16134c874ad560bf72.tar.gz
volse-hubzilla-62a60e554235c66c88955d16134c874ad560bf72.tar.bz2
volse-hubzilla-62a60e554235c66c88955d16134c874ad560bf72.zip
more work on media uploads via api
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index 20e8b7444..8595d5d86 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -503,6 +503,10 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
}
}
+ // AndStatus sends jpegs with a non-standard mimetype
+ if($type === 'image/jpg')
+ $type = 'image/jpeg';
+
$existing_size = 0;
if($options === 'replace') {