rm: remove attempt at supporting avatar/banner changing
This commit is contained in:
@@ -149,7 +149,7 @@ export interface MegalodonInterface {
|
||||
language?: string
|
||||
}
|
||||
fields_attributes?: Array<{ name: string; value: string }>
|
||||
}, file?: any): Promise<Response<Entity.Account>>
|
||||
}): Promise<Response<Entity.Account>>
|
||||
/**
|
||||
* View information about a profile.
|
||||
*
|
||||
|
||||
@@ -220,7 +220,7 @@ export default class Misskey implements MegalodonInterface {
|
||||
language?: string
|
||||
} | null
|
||||
fields_attributes?: Array<{ name: string; value: string }>
|
||||
}, file?: any): Promise<Response<Entity.Account>> {
|
||||
}): Promise<Response<Entity.Account>> {
|
||||
let params = {}
|
||||
if (options) {
|
||||
if (options.bot !== undefined) {
|
||||
@@ -233,18 +233,6 @@ export default class Misskey implements MegalodonInterface {
|
||||
name: options.display_name
|
||||
})
|
||||
}
|
||||
if (options.avatar) {
|
||||
const media = await this.uploadMedia(file);
|
||||
params = Object.assign(params, {
|
||||
avatarId: media.data.id
|
||||
})
|
||||
}
|
||||
if (options.header) {
|
||||
const media = await this.uploadMedia(file);
|
||||
params = Object.assign(params, {
|
||||
headerId: media.data.id
|
||||
})
|
||||
}
|
||||
if (options.note) {
|
||||
params = Object.assign(params, {
|
||||
description: options.note
|
||||
|
||||
Reference in New Issue
Block a user