mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 09:33:09 +02:00
fix: reply edits not staying attached
This commit is contained in:
parent
cd1083cc30
commit
8736560e5f
1 changed files with 6 additions and 0 deletions
|
@ -1148,6 +1148,7 @@ export default class Misskey implements MegalodonInterface {
|
||||||
media_ids?: Array<string> | null
|
media_ids?: Array<string> | null
|
||||||
poll?: { options?: Array<string>; expires_in?: number; multiple?: boolean; hide_totals?: boolean }
|
poll?: { options?: Array<string>; expires_in?: number; multiple?: boolean; hide_totals?: boolean }
|
||||||
visibility?: "public" | "unlisted" | "private" | "direct"
|
visibility?: "public" | "unlisted" | "private" | "direct"
|
||||||
|
in_reply_to_id?: string
|
||||||
}
|
}
|
||||||
): Promise<Response<Entity.Status>> {
|
): Promise<Response<Entity.Status>> {
|
||||||
let params = {
|
let params = {
|
||||||
|
@ -1160,6 +1161,11 @@ export default class Misskey implements MegalodonInterface {
|
||||||
fileIds: _options.media_ids
|
fileIds: _options.media_ids
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (_options.in_reply_to_id) {
|
||||||
|
params = Object.assign(params, {
|
||||||
|
replyId: _options.in_reply_to_id
|
||||||
|
})
|
||||||
|
}
|
||||||
if (_options.poll) {
|
if (_options.poll) {
|
||||||
let pollParam = {
|
let pollParam = {
|
||||||
choices: _options.poll.options,
|
choices: _options.poll.options,
|
||||||
|
|
Loading…
Reference in a new issue