fixes
- restart container if it goes down - connect to correct mastodon account! - add check for `content` when parsing feeds
This commit is contained in:
parent
a79b771e6c
commit
6d6f1ad787
|
@ -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 += "..."
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue