Support custom emojis on mitra
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -2056,7 +2056,7 @@ class PlApiClient {
|
||||
const apiVersions = this.#instance.api_versions;
|
||||
|
||||
let response;
|
||||
if (apiVersions['emoji_reactions.pleroma.pl-api'] >= 1) {
|
||||
if (apiVersions['emoji_reactions.pleroma.pl-api'] >= 1 || this.features.version.software === MITRA) {
|
||||
response = await this.request(`/api/v1/pleroma/statuses/${statusId}/reactions/${encodeURIComponent(emoji)}`, { method: 'PUT' });
|
||||
} else {
|
||||
response = await this.request(`/api/v1/statuses/${statusId}/react/${encodeURIComponent(emoji)}`, { method: 'POST' });
|
||||
@ -2075,7 +2075,7 @@ class PlApiClient {
|
||||
const apiVersions = this.#instance.api_versions;
|
||||
|
||||
let response;
|
||||
if (apiVersions['emoji_reactions.pleroma.pl-api'] >= 1) {
|
||||
if (apiVersions['emoji_reactions.pleroma.pl-api'] >= 1 || this.features.version.software === MITRA) {
|
||||
response = await this.request(`/api/v1/pleroma/statuses/${statusId}/reactions/${emoji}`, { method: 'DELETE' });
|
||||
} else {
|
||||
response = await this.request(`/api/v1/statuses/${statusId}/unreact/${encodeURIComponent(emoji)}`, { method: 'POST' });
|
||||
|
||||
Reference in New Issue
Block a user