mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-13 20:14:42 +00:00
Merge pull request 'Fix 404 when reacting with Keycap Number Sign' (#252) from fef/pleroma-fe:develop into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/252
This commit is contained in:
commit
72ef2e7454
1 changed files with 2 additions and 2 deletions
|
@ -1335,7 +1335,7 @@ const fetchEmojiReactions = ({ id, credentials }) => {
|
||||||
|
|
||||||
const reactWithEmoji = ({ id, emoji, credentials }) => {
|
const reactWithEmoji = ({ id, emoji, credentials }) => {
|
||||||
return promisedRequest({
|
return promisedRequest({
|
||||||
url: PLEROMA_EMOJI_REACT_URL(id, emoji),
|
url: PLEROMA_EMOJI_REACT_URL(id, encodeURIComponent(emoji)),
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
credentials
|
credentials
|
||||||
}).then(parseStatus)
|
}).then(parseStatus)
|
||||||
|
@ -1343,7 +1343,7 @@ const reactWithEmoji = ({ id, emoji, credentials }) => {
|
||||||
|
|
||||||
const unreactWithEmoji = ({ id, emoji, credentials }) => {
|
const unreactWithEmoji = ({ id, emoji, credentials }) => {
|
||||||
return promisedRequest({
|
return promisedRequest({
|
||||||
url: PLEROMA_EMOJI_UNREACT_URL(id, emoji),
|
url: PLEROMA_EMOJI_UNREACT_URL(id, encodeURIComponent(emoji)),
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
credentials
|
credentials
|
||||||
}).then(parseStatus)
|
}).then(parseStatus)
|
||||||
|
|
Loading…
Reference in a new issue