diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86d4d40..446dc08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,8 @@ jobs: LGPL-2.1-or-later, LGPL-3.0-only, LGPL-3.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later - validate: + test: + name: test runs-on: ubuntu-latest timeout-minutes: 60 steps: diff --git a/LICENSE b/LICENSE index cfd3a77..0ad25db 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,3 @@ -HackerTok - A Hacker News client -Copyright (C) 2026 HackerTok Contributors - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see . - -------------------------------------------------------------------------------- - GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 @@ -634,3 +617,45 @@ Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/e2e/fixtures/api-mocks.ts b/e2e/fixtures/api-mocks.ts index 608db2e..46c367f 100644 --- a/e2e/fixtures/api-mocks.ts +++ b/e2e/fixtures/api-mocks.ts @@ -197,7 +197,6 @@ export async function setupApiMocks(page: Page) { await page.route(`${ALGOLIA_API}/search*`, async (route) => { const url = new URL(route.request().url()); const tags = url.searchParams.get('tags') || ''; - const query = url.searchParams.get('query') || ''; const page = parseInt(url.searchParams.get('page') || '0', 10); let hits: object[] = []; @@ -254,9 +253,6 @@ export async function setupApiMocks(page: Page) { // from the 'front_page' branch above so pagination is observable. hits = [mockPaginationItem1, mockPaginationItem2, mockPaginationItem3]; nbHits = 3; - } else if (query.includes('example.com')) { - hits = [mockDomainItem]; - nbHits = 1; } await route.fulfill({