mirror of
https://github.com/ioistired/pleroma-ebooks.git
synced 2025-01-08 01:24:44 +01:00
normalize Pleroman posts without cws (fix #3)
This commit is contained in:
parent
4492f6685c
commit
94949289f0
@ -144,7 +144,9 @@ class PostFetcher:
|
||||
""",
|
||||
(
|
||||
obj['id'],
|
||||
obj['summary'],
|
||||
# Pleroma returns an empty string here for posts without a CW,
|
||||
# which is semantically incorrect IMO
|
||||
obj['summary'] or None,
|
||||
extract_post_content(obj['content']),
|
||||
pendulum.parse(obj['published']).astimezone(pendulum.timezone('UTC')).timestamp(),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user