forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into temp2_for-taruntarun
- Loading branch information
Showing
71 changed files
with
993 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// See app/serializers/rest/media_attachment_serializer.rb | ||
|
||
export type MediaAttachmentType = | ||
| 'image' | ||
| 'gifv' | ||
| 'video' | ||
| 'unknown' | ||
| 'audio'; | ||
|
||
export interface ApiMediaAttachmentJSON { | ||
id: string; | ||
type: MediaAttachmentType; | ||
url: string; | ||
preview_url: string; | ||
remoteUrl: string; | ||
preview_remote_url: string; | ||
text_url: string; | ||
// TODO: how to define this? | ||
meta: unknown; | ||
description?: string; | ||
blurhash: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { ApiCustomEmojiJSON } from './custom_emoji'; | ||
|
||
// See app/serializers/rest/poll_serializer.rb | ||
|
||
export interface ApiPollOptionJSON { | ||
title: string; | ||
votes_count: number; | ||
} | ||
|
||
export interface ApiPollJSON { | ||
id: string; | ||
expires_at: string; | ||
expired: boolean; | ||
multiple: boolean; | ||
votes_count: number; | ||
voters_count: number; | ||
|
||
options: ApiPollOptionJSON[]; | ||
emojis: ApiCustomEmojiJSON[]; | ||
|
||
voted: boolean; | ||
own_votes: number[]; | ||
} |
Oops, something went wrong.