fix some things for sharkey support

This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-03-21 00:51:37 +01:00
parent d08f1f94ec
commit eacfe97d98
Signed by: root
GPG key ID: 83A53A8C412E93F5
2 changed files with 10 additions and 0 deletions

5
.gitignore vendored
View file

@ -19,3 +19,8 @@ __pycache__/
!*.defaults.json
venv/
.venv/
bin
lib
lib64
pyenv.cfg

View file

@ -128,6 +128,11 @@ class PostFetcher:
obj = activity['object']
try:
obj['summary']
except KeyError:
obj['summary'] = None
await self._db.execute(
"""
INSERT INTO posts (post_id, summary, content, published_at)