kopia lustrzana https://gitlab.com/marnanel/chapeau
The MIME type of JPEGs serialised to ActivityPub was misspelled as "image/jpg" (instead of "image/jpeg"). Fixed.
Tests updated.status-serialisers
rodzic
b0aa91da76
commit
5ba53dfbb2
|
@ -76,7 +76,7 @@ class ImageField(serializers.Field):
|
|||
def to_representation(self, value):
|
||||
return {
|
||||
'type': 'Image',
|
||||
'mediaType': 'image/jpg', # FIXME always?
|
||||
'mediaType': 'image/jpeg', # FIXME always?
|
||||
'url': value,
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue