diff --git a/activitypub.py b/activitypub.py index 95ce35a..3ce0441 100644 --- a/activitypub.py +++ b/activitypub.py @@ -21,7 +21,6 @@ from config import PUBLIC_INSTANCES import tasks from typing import List, Optional, Dict, Any, Union -from typing import TypeVar logger = logging.getLogger(__name__) @@ -345,7 +344,7 @@ class BaseActivity(object): self._post_to_outbox(obj_id, activity, recipients) logger.debug(f'called post to outbox hook') except NotImplementedError: - logger.debug('post to outbox hook not implemented') + logger.debug('post to outbox hook not implemented') generate_signature(activity, KEY.privkey) payload = json.dumps(activity) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 0967722..bf6b0ee 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -1,4 +1,4 @@ -version: '3' +version: '2' services: celery: build: . diff --git a/docker-compose-tests.yml b/docker-compose-tests.yml index d45609b..06f3f05 100644 --- a/docker-compose-tests.yml +++ b/docker-compose-tests.yml @@ -15,6 +15,7 @@ services: - MICROBLOGPUB_MONGODB_HOST=mongo:27017 - MICROBLOGPUB_DEBUG=1 celery: +# image: "instance1_web" build: . links: - mongo diff --git a/docker-compose.yml b/docker-compose.yml index c2dab44..74f92d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '2' services: web: build: .