#103 Fix OG images

This commit is contained in:
Alan Grainger
2025-06-10 15:13:08 +12:00
parent 155f029737
commit 518a905ee8
6 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -132,7 +132,10 @@ class Render {
'</a>'
].join('')
items.push(itemHtml)
items.push({
html: itemHtml,
thumbnailUrl
})
}
res.render('gallery', {
items,
+1 -1
View File
@@ -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>