mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
9e003a5d8b
1 changed files with 9 additions and 8 deletions
|
@ -1361,7 +1361,8 @@ def create_post_reply(activity_log: ActivityPubLog, community: Community, in_rep
|
|||
post = Post.query.get(post_id)
|
||||
|
||||
# special case: add comment from auto-tldr bot to post body if body is empty
|
||||
if user.ap_id == 'autotldr@lemmings.world' and post.body.strip() == '':
|
||||
if user.ap_id == 'autotldr@lemmings.world':
|
||||
if not post.body or (post.body and post.body.strip() == ''):
|
||||
if not '::: spoiler' in post_reply.body:
|
||||
post.body = "🤖 I'm a bot that provides automatic summaries for articles:\n::: spoiler Click here to see the summary\n" + post_reply.body + '\n:::'
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue