support reactions in mastodon API
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/// <reference path="account.ts" />
|
||||
|
||||
namespace MastodonEntity {
|
||||
export type Reaction = {
|
||||
name: string
|
||||
count: number
|
||||
me?: boolean
|
||||
url?: string
|
||||
static_url?: string
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
/// <reference path="emoji.ts" />
|
||||
/// <reference path="card.ts" />
|
||||
/// <reference path="poll.ts" />
|
||||
/// <reference path="reaction.ts" />
|
||||
|
||||
namespace MastodonEntity {
|
||||
export type Status = {
|
||||
@@ -41,6 +42,8 @@ namespace MastodonEntity {
|
||||
// These parameters are unique parameters in fedibird.com for quote.
|
||||
quote_id?: string
|
||||
quote?: Status | null
|
||||
// These parameters are unique to glitch-soc for emoji reactions.
|
||||
reactions?: Reaction[]
|
||||
}
|
||||
|
||||
export type StatusTag = {
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
/// <reference path="./entities/poll_option.ts" />
|
||||
/// <reference path="./entities/preferences.ts" />
|
||||
/// <reference path="./entities/push_subscription.ts" />
|
||||
/// <reference path="./entities/reaction.ts" />
|
||||
/// <reference path="./entities/relationship.ts" />
|
||||
/// <reference path="./entities/report.ts" />
|
||||
/// <reference path="./entities/results.ts" />
|
||||
|
||||
Reference in New Issue
Block a user