diff --git a/blogs/management/commands/check_feeds.py b/blogs/management/commands/check_feeds.py index 2287563..fb8a383 100644 --- a/blogs/management/commands/check_feeds.py +++ b/blogs/management/commands/check_feeds.py @@ -129,6 +129,11 @@ class Command(BaseCommand): and len(article.summary) ) else html.strip_tags(article.content[0].value)[:200] + if ( + hasattr(article, "content") + and len(article.content) + ) + else None ) description += "..." @@ -197,8 +202,12 @@ class Command(BaseCommand): hasattr(edition, "description") and len(edition.summary) ) - else html.strip_tags(edition.content[0].value)[:200] - + "..." + else html.strip_tags(edition.content[0].value)[:200] + "..." + if ( + hasattr(article, "content") + and len(article.content) + ) + else None ) description += "..." diff --git a/blogs/utilities.py b/blogs/utilities.py index b5881b4..ff49a78 100644 --- a/blogs/utilities.py +++ b/blogs/utilities.py @@ -127,7 +127,7 @@ def get_webfinger_subscribe_uri(username): template = link["template"] if user_id and template: - encoded_user = iri_to_uri("blogs@ausglam.space") + encoded_user = iri_to_uri("ausglamr@ausglam.space") uri = template.replace("{uri}", encoded_user) return uri diff --git a/docker-compose.yml b/docker-compose.yml index 40e84d0..ec7ef7c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: web: build: . env_file: .env + restart: unless-stopped command: python manage.py runserver 0.0.0.0:8000 # only use in dev # command: gunicorn --env DJANGO_SETTINGS_MODULE=ausglamr.settings ausglamr.wsgi --workers=10 --threads=4 -b 0.0.0.0:8000 volumes: