aboutsummaryrefslogtreecommitdiffstats
path: root/src/skweets.rs
blob: 91369ecc675f9b8f02b25e3c9c451c38c698b894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
use crate::error::BlossomError;
use mastodon_async::entities::status::Status;
use mastodon_async::prelude::*;

pub async fn get_recents(client: &Mastodon) -> Result<Vec<Status>, BlossomError> {
    Ok(client
        .statuses("cel", Default::default())
        .await?
        .initial_items)
}