안녕하세요 여러분!
사용자 API를 통해 개인 메시지를 보내고 있습니다. 사용자 이름은 'system’입니다.
const postData = {
title: messageTitle,
raw: messageBody,
username: 'system',
category: 22,
target_recipients,
archetype: 'private_message',
is_warning: true,
status: 'archived',
enabled: false,
};
// 메시지 전송 시작
try {
const response = await fetch(endpoint, {
method: 'POST',
headers: getHeaders(),
body: JSON.stringify(postData),
});
// 응답을 JSON으로 변환
const data = await response.json();
return data;
} catch (error) {
return { errors: ['something went wrong while sending PM'] };
}
하지만 알림에는 '2개의 답글’이라고 표시되고 있습니다.
하지만 실제로는 답글이 없습니다.
더 이상한 점은 이 문제가 라이브 사이트에서 개인 메시지를 보낼 때만 발생한다는 것입니다. 로컬호스트에서 테스트하면 문제가 발생하지 않습니다.
혹시 원인을 아는 분이 계신가요?


