Hello #MastodonAPI and #ActivityPub friends.
-
Hello #MastodonAPI and #ActivityPub friends.
I've created a bot which has several test cases for you to try: @test_posts
If you've built something which consumes posts, this will (I hope) give you some confidence that everything renders correctly.
Are there any other types of posts you think it should have?
-
Sammy, enby foxthing~ :nonbinaryFlag:replied to Terence Eden last edited by
@Edent @test_posts oh that's a good idea..! Had never thought of CI/unit testing to ensure posts render/are parsed correctly..!
-
Sammy, enby foxthing~ :nonbinaryFlag:replied to Sammy last edited by
@Edent @test_posts do you have a script or something for generating all these test posts? If so, the source for that would be really useful for others who may wish to run these sorts of "standardised test posts" on a local testing instance or something?
-
Christian Lawson-Perfectreplied to Terence Eden last edited by
@Edent that's a really good idea!
I didn't see a post with hashtags at the end, which some clients like to display separately from the main text.
-
@theresnotime Nope. I just manually typed them in. Feel free to write a script based on them if you like.
-
Terence Edenreplied to Christian Lawson-Perfect last edited by
@christianp thanks! Just added!
-
Christian Lawson-Perfectreplied to Terence Eden last edited by
@Edent you could also have a very long post which should get the "show more" button.
-
Terence Edenreplied to Christian Lawson-Perfect last edited by
@christianp I've added a 500 char post.
-
@Edent @test_posts This is super useful!