fix some things for sharkey support
This commit is contained in:
parent
d08f1f94ec
commit
eacfe97d98
2 changed files with 10 additions and 0 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -19,3 +19,8 @@ __pycache__/
|
|||
!*.defaults.json
|
||||
venv/
|
||||
.venv/
|
||||
|
||||
bin
|
||||
lib
|
||||
lib64
|
||||
pyenv.cfg
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue