aboutsummaryrefslogtreecommitdiffstats
path: root/src/skweets.rs
blob: 643456983ed40fabecda04f083e11f9cb65cf3c5 (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(&AccountId::new("cel"), Default::default())
        .await?
        .initial_items)
}