#103 Fix OG images
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "immich-public-proxy",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "immich-public-proxy",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.3",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"archiver": "^7.0.1",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "immich-public-proxy",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.3",
|
||||
"scripts": {
|
||||
"dev": "ts-node src/index.ts",
|
||||
"build": "npx tsc",
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ class LGallery {
|
||||
this.items
|
||||
.slice(this.index, this.index + PER_PAGE)
|
||||
.forEach(item => {
|
||||
this.element.insertAdjacentHTML('beforeend', item + '\n')
|
||||
this.element.insertAdjacentHTML('beforeend', item.html + '\n')
|
||||
})
|
||||
this.index += PER_PAGE
|
||||
this.lightGallery.refresh()
|
||||
|
||||
+4
-1
@@ -132,7 +132,10 @@ class Render {
|
||||
'</a>'
|
||||
].join('')
|
||||
|
||||
items.push(itemHtml)
|
||||
items.push({
|
||||
html: itemHtml,
|
||||
thumbnailUrl
|
||||
})
|
||||
}
|
||||
res.render('gallery', {
|
||||
items,
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<%
|
||||
// Load the first 50 thumbnails, then load more as the user scrolls. See web.js
|
||||
items.slice(0, 50).forEach(item => {
|
||||
%><%- item %>
|
||||
%><%- item.html %>
|
||||
<% }) %>
|
||||
</div>
|
||||
<script src="/share/static/web.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user