fix relationship data for Mastodon API (resolves #714)
This commit is contained in:
parent
5a1d1394d4
commit
bd95e8a555
7 changed files with 39 additions and 14 deletions
|
|
@ -604,7 +604,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
/**
|
||||
* POST /api/users/relation
|
||||
*
|
||||
* @param id Array of account ID, for example `['1sdfag', 'ds12aa']`.
|
||||
* @param ids Array of account ID, for example `['1sdfag', 'ds12aa']`.
|
||||
*/
|
||||
public async getRelationships(ids: Array<string>): Promise<Response<Array<Entity.Relationship>>> {
|
||||
return Promise.all(ids.map(id => this.getRelationship(id))).then(results => ({
|
||||
|
|
@ -2232,7 +2232,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
hashtags: [],
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
if (result.status !== 200) {
|
||||
result.status = 200;
|
||||
result.statusText = "OK";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue