v3: added emoji picker, various bug and layout fixes
This commit is contained in:
@@ -356,13 +356,13 @@ export function getPlaylistMembershipsForDump(
|
||||
});
|
||||
}
|
||||
|
||||
export function getPlaylistImageMime(playlistId: string): string | undefined {
|
||||
const row = db.prepare(`SELECT image_mime FROM playlists WHERE id = ?;`).get(
|
||||
playlistId,
|
||||
) as
|
||||
| { image_mime: string | null }
|
||||
| undefined;
|
||||
return row?.image_mime ?? undefined;
|
||||
export function getPlaylistImageInfo(
|
||||
idOrSlug: string,
|
||||
): { id: string; imageMime: string } | undefined {
|
||||
const playlist = getPlaylistById(idOrSlug);
|
||||
return playlist.imageMime
|
||||
? { id: playlist.id, imageMime: playlist.imageMime }
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function getCurrentDumpIds(playlistId: string): string[] {
|
||||
|
||||
Reference in New Issue
Block a user