From 925dad521c7855781eaa11cbce8b6bfdb43d3f7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 28 May 2023 18:16:00 +0200 Subject: [PATCH] Let's do this proper. Here you go, FSF! --- api.py | 16 ++++++++++++++++ fba.py | 16 ++++++++++++++++ fetch_blocks.py | 16 ++++++++++++++++ fetch_instances.py | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/api.py b/api.py index f53a684..fb76f9b 100644 --- a/api.py +++ b/api.py @@ -1,3 +1,19 @@ +# Fedi API Block - An aggregator for fetching blocking data from fediverse nodes +# Copyright (C) 2023 Free Software Foundation +# +# 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 . + from fastapi import FastAPI, Request, HTTPException, responses, Query from fastapi.templating import Jinja2Templates from datetime import datetime diff --git a/fba.py b/fba.py index f54789c..c871b77 100644 --- a/fba.py +++ b/fba.py @@ -1,3 +1,19 @@ +# Fedi API Block - An aggregator for fetching blocking data from fediverse nodes +# Copyright (C) 2023 Free Software Foundation +# +# 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 . + import bs4 import hashlib import re diff --git a/fetch_blocks.py b/fetch_blocks.py index 71cf74f..2e0ff2d 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -1,3 +1,19 @@ +# Fedi API Block - An aggregator for fetching blocking data from fediverse nodes +# Copyright (C) 2023 Free Software Foundation +# +# 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 . + import reqto import time import bs4 diff --git a/fetch_instances.py b/fetch_instances.py index c5188fd..81deda0 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -1,3 +1,19 @@ +# Fedi API Block - An aggregator for fetching blocking data from fediverse nodes +# Copyright (C) 2023 Free Software Foundation +# +# 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 . + import sqlite3 import sys import json -- 2.39.5