Compare commits

...

2 commits

Author SHA1 Message Date
c7ccf80b2a Merge pull request 'Update behavior of update posts' (#16) from post-updates-unlisted into main
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/vulnerability-scan Pipeline was successful
Reviewed-on: #16
2024-02-28 21:41:35 -08:00
357bbb308a Update behavior of update posts
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/vulnerability-scan Pipeline was successful
ci/woodpecker/pull_request_closed/lint Pipeline was successful
ci/woodpecker/pull_request_closed/vulnerability-scan Pipeline was successful
2024-02-28 21:38:02 -08:00

4
scl.py
View file

@ -348,13 +348,11 @@ with Session(engine) as session:
", ".join(updated_properties) ", ".join(updated_properties)
), ),
) )
updated_entries.append("")
updated_entries.append(hashtag_string)
if max_event_class["is_postable"] and existing_record.initial_post_id: if max_event_class["is_postable"] and existing_record.initial_post_id:
post_result = mastodon_client.status_post( post_result = mastodon_client.status_post(
status="\n".join(updated_entries), status="\n".join(updated_entries),
in_reply_to_id=existing_record.most_recent_post_id, in_reply_to_id=existing_record.most_recent_post_id,
visibility="public", visibility="unlisted",
language="en", language="en",
) )
existing_record.most_recent_post_id = post_result["id"] existing_record.most_recent_post_id = post_result["id"]