Skip to content
Snippets Groups Projects
Commit f4d3280a authored by Travis Ralston's avatar Travis Ralston
Browse files

Use the correct origin and ID when creating thumbnails

parent 07ad846a
No related branches found
No related tags found
No related merge requests found
...@@ -61,8 +61,8 @@ func Generate(ctx rcontext.RequestContext, mediaRecord *database.DbMedia, width ...@@ -61,8 +61,8 @@ func Generate(ctx rcontext.RequestContext, mediaRecord *database.DbMedia, width
// Create a DbThumbnail // Create a DbThumbnail
newRecord := &database.DbThumbnail{ newRecord := &database.DbThumbnail{
Origin: thumbMediaRecord.Origin, Origin: mediaRecord.Origin,
MediaId: thumbMediaRecord.MediaId, MediaId: mediaRecord.MediaId,
ContentType: thumbMediaRecord.ContentType, ContentType: thumbMediaRecord.ContentType,
Width: width, Width: width,
Height: height, Height: height,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment