Fix: Attached images from Lemmy can now be processed
This commit is contained in:
parent
1a36118e7a
commit
a36e53af3c
|
@ -1638,7 +1638,7 @@ class Receiver
|
||||||
'type' => str_replace('as:', '', JsonLD::fetchElement($attachment, '@type')),
|
'type' => str_replace('as:', '', JsonLD::fetchElement($attachment, '@type')),
|
||||||
'mediaType' => JsonLD::fetchElement($attachment, 'as:mediaType', '@value'),
|
'mediaType' => JsonLD::fetchElement($attachment, 'as:mediaType', '@value'),
|
||||||
'name' => JsonLD::fetchElement($attachment, 'as:name', '@value'),
|
'name' => JsonLD::fetchElement($attachment, 'as:name', '@value'),
|
||||||
'url' => JsonLD::fetchElement($attachment, 'as:url', '@id'),
|
'url' => JsonLD::fetchElement($attachment, 'as:url', '@id') ?? JsonLD::fetchElement($attachment, 'as:href', '@id'),
|
||||||
'height' => JsonLD::fetchElement($attachment, 'as:height', '@value'),
|
'height' => JsonLD::fetchElement($attachment, 'as:height', '@value'),
|
||||||
'width' => JsonLD::fetchElement($attachment, 'as:width', '@value'),
|
'width' => JsonLD::fetchElement($attachment, 'as:width', '@value'),
|
||||||
'image' => JsonLD::fetchElement($attachment, 'as:image', '@id')
|
'image' => JsonLD::fetchElement($attachment, 'as:image', '@id')
|
||||||
|
|
Loading…
Reference in a new issue