From aedbfe364eaf735752a07cc6e602b34e023ee268 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Tue, 27 May 2025 13:44:20 +0300 Subject: [PATCH] fix(picker): albums select --- Web/static/js/al_wall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 7c87a89b..68ec3853 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -1366,7 +1366,7 @@ u(document).on("click", "#__photoAttachment", async (e) => { if(album == 0) { photos = await window.OVKAPI.call('photos.getAll', {'owner_id': window.openvk.current_id, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page}) } else { - photos = await window.OVKAPI.call('photos.get', {'owner_id': window.openvk.current_id, 'album_id': album, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page}) + photos = await window.OVKAPI.call('photos.get', {'owner_id': club != 0 ? Math.abs(club) * -1 : window.openvk.current_id, 'album_id': album, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page}) } } catch(e) { u("#attachment_insert_count h4").html(tr("is_x_photos", -1))