mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-03 21:43:40 -05:00
13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
|
import type { ApiSuggestionJSON } from 'flavours/glitch/api_types/suggestions';
|
||
|
|
||
|
export interface Suggestion extends Omit<ApiSuggestionJSON, 'account'> {
|
||
|
account_id: string;
|
||
|
}
|
||
|
|
||
|
export const createSuggestion = (
|
||
|
serverJSON: ApiSuggestionJSON,
|
||
|
): Suggestion => ({
|
||
|
sources: serverJSON.sources,
|
||
|
account_id: serverJSON.account.id,
|
||
|
});
|