Add: size & blur hash fields
This commit is contained in:
parent
0a71f38cd2
commit
a352a1f752
1 changed files with 2 additions and 0 deletions
|
@ -160,7 +160,9 @@ class PostSerializer(serializers.ModelSerializer):
|
||||||
{
|
{
|
||||||
"type": i.file_type,
|
"type": i.file_type,
|
||||||
"mimetype": i.mimetype,
|
"mimetype": i.mimetype,
|
||||||
|
"size": i.file.size,
|
||||||
"hash": i.hash_blake3,
|
"hash": i.hash_blake3,
|
||||||
|
"blur_hash": i.blur_hash,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Add table
Reference in a new issue