Merge pull request #338 from LD-Reborn/333-bug-newly-created-users-dont-have-an-image

Fixed newly created users don't have a profile picture
This commit is contained in:
LD50
2025-11-23 14:18:30 +01:00
committed by GitHub

View File

@@ -556,7 +556,7 @@
const tbody = document.querySelector('table tbody'); const tbody = document.querySelector('table tbody');
const newRow = document.createElement('tr'); const newRow = document.createElement('tr');
newRow.innerHTML = ` newRow.innerHTML = `
<td><img class="rounded-circle user-icon" src="data:image/jpeg;base64,${data.JpegPhoto || ''}" alt="Photo" style="max-width:300px;" /></td> <td><img class="rounded-circle user-icon" src="/Home/UserPhoto?uid=${result.Uid}&size=48" alt="Photo" style="max-width:300px;" /></td>
<td>${result.Uid || ''}</td> <td>${result.Uid || ''}</td>
<td>${data.Title || ''}</td> <td>${data.Title || ''}</td>
<td>${data.Cn || ''}</td> <td>${data.Cn || ''}</td>