mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: tweak api definition
This commit is contained in:
@ -30,12 +30,9 @@ const MemoCommentMessage = ({ inbox }: Props) => {
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const { activity } = await activityServiceClient.getActivity({
|
||||
const activity = await activityServiceClient.getActivity({
|
||||
id: inbox.activityId,
|
||||
});
|
||||
if (!activity) {
|
||||
return;
|
||||
}
|
||||
if (activity.payload?.memoComment) {
|
||||
const memoCommentPayload = activity.payload.memoComment;
|
||||
const relatedMemoId = memoCommentPayload.relatedMemoId;
|
||||
|
Reference in New Issue
Block a user