Mercurial > silorider
diff tests/test_silos_bluesky.py @ 48:486affad656e
Rewrite posting process with card system and more structured API
- The basic posting process is more opinionated so that silos have less code to
write, and dry-run posting is handled by default.
- Add "card" system where SiloRider is able to fetch the page of a post to
check for any custom summary or featured image. This is how Twitter,
Facebook, Discord, and many others come up with their "preview card" when
a link is posted.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 08 Oct 2023 13:47:28 -0700 |
parents | ac5911e76ef2 |
children | d65f6dced79f |
line wrap: on
line diff
--- a/tests/test_silos_bluesky.py Sun Oct 08 13:38:08 2023 -0700 +++ b/tests/test_silos_bluesky.py Sun Oct 08 13:47:28 2023 -0700 @@ -167,7 +167,7 @@ self.blobs.append((tmpfile, desc)) return len(self.blobs) - def send_post(self, text, embed=None, facets=None): + def send_post(self, text, post_datetime=None, embed=None, facets=None): self.posts.append((text, embed, facets))