Implement creator studio and upload updates
This commit is contained in:
@@ -89,11 +89,17 @@ it('persists a normalized embedding and upserts the artwork to the vector gatewa
|
||||
$data = $request->data();
|
||||
|
||||
return ($data['id'] ?? null) === (string) $artwork->id
|
||||
&& ($data['url'] ?? null) === 'https://files.local/md/aa/bb/aabbccddeeff1122.webp'
|
||||
&& ($data['url'] ?? null) === 'https://files.local/artworks/md/aa/bb/aabbccddeeff1122.webp'
|
||||
&& ($data['metadata']['content_type'] ?? null) === 'Wallpapers'
|
||||
&& ($data['metadata']['category'] ?? null) === 'Abstract'
|
||||
&& ($data['metadata']['tags'] ?? null) === ['neon']
|
||||
&& ($data['metadata']['user_id'] ?? null) === (string) $artwork->user_id;
|
||||
&& ($data['metadata']['user_id'] ?? null) === (string) $artwork->user_id
|
||||
&& ($data['metadata']['is_public'] ?? null) === true
|
||||
&& ($data['metadata']['is_deleted'] ?? null) === false
|
||||
&& ($data['metadata']['is_nsfw'] ?? null) === false
|
||||
&& isset($data['metadata']['category_id'])
|
||||
&& isset($data['metadata']['content_type_id'])
|
||||
&& array_key_exists('status', $data['metadata']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user