pinafore/src/routes/_actions/getRecentStatusesForAccount.js

8 lines
315 B
JavaScript
Raw Normal View History

import { store } from '../_store/store'
import { getTimeline } from '../_api/timelines'
export async function getRecentStatusesForAccount (accountId) {
const { currentInstance, accessToken } = store.get()
return (await getTimeline(currentInstance, accessToken, `account/${accountId}`, null, null, 20)).items
}