Fix: Local-Source Popular Query + App-Pin Flow

This commit is contained in:
Youwes09
2026-06-06 15:00:59 -05:00
parent 5dfbc80bbe
commit ed4c11ca7e
7 changed files with 225 additions and 94 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ export class SuwayomiAdapter implements ServerAdapter {
async browseSource(sourceId: string, page: number): Promise<PaginatedResult<Manga>> {
const data = await this.gql<{
fetchSourceManga: { mangas: Record<string, unknown>[]; hasNextPage: boolean }
}>(FETCH_SOURCE_MANGA, { source: sourceId, type: 'LATEST', page })
}>(FETCH_SOURCE_MANGA, { source: sourceId, type: sourceId === '0' ? 'POPULAR' : 'LATEST', page })
return {
items: data.fetchSourceManga.mangas.map(mapManga),
hasNextPage: data.fetchSourceManga.hasNextPage,