mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Thumbnail uploaded and cached images
This commit is contained in:
parent
a953be097f
commit
cc84d3ea78
7 changed files with 586 additions and 174 deletions
|
@ -56,8 +56,8 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||
)
|
||||
|
||||
def store_local_thumbnail(self, media_id, thumbnail_width,
|
||||
thumbnail_height, thumbnail_method,
|
||||
thumbnail_type, thumbnail_length):
|
||||
thumbnail_height, thumbnail_type,
|
||||
thumbnail_method, thumbnail_length):
|
||||
return self._simple_insert(
|
||||
"local_media_thumbnails",
|
||||
{
|
||||
|
@ -108,10 +108,10 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||
)
|
||||
)
|
||||
|
||||
def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width,
|
||||
thumbnail_height, thumbnail_method,
|
||||
thumbnail_type, thumbnail_length,
|
||||
filesystem_id):
|
||||
def store_remote_media_thumbnail(self, origin, media_id, filesystem_id,
|
||||
thumbnail_width, thumbnail_height,
|
||||
thumbnail_type, thumbnail_method,
|
||||
thumbnail_length):
|
||||
return self._simple_insert(
|
||||
"remote_media_cache_thumbnails",
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue