Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CherryPickのチャット機能を使って Mastodonにメッセージを送るとバグる #459

Closed
1 task
mirielnet opened this issue May 1, 2024 · 2 comments

Comments

@mirielnet
Copy link
Contributor

💡 Summary

CherryPickのチャット機能を使って Mastodonにメッセージを送ると、メッセージの末尾に #objectobject という文字が出ます。
それは非常に不快であり、心配を引き起こします。
image

🥰 Expected Behavior

#objectobject が出ない

🤬 Actual Behavior

#objectobject が出る

📝 Steps to Reproduce

No response

💻 Frontend Environment

* Model and OS of the device(s):
* Browser: 関係なし
* Server URL:https://beta.kokonect.link
* CherryPick:4.8.0-beta.2

🛰 Backend Environment (for server admin)

* CherryPick:4.8.0-beta.2

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@SWREI
Copy link
Contributor

SWREI commented May 2, 2024

tags parameter contains {} and maybe this has been converted to [object Object] in ApRenderService.

const note = {
id: message.id,
fileIds: message.fileId ? [message.fileId] : [],
text: message.text,
userId: message.userId,
visibility: 'specified',
emojis: [{}],
tags: [{}],
mentions: [recipientUser].map(u => u.id),
mentionedRemoteUsers: JSON.stringify([recipientUser].map(u => ({
uri: u.uri,
url: url,
username: u.username,
host: u.host,
} as IMentionedRemoteUsers[0]
))),
} as MiNote;

@noridev
Copy link
Collaborator

noridev commented May 8, 2024

646f21d で修正しました。ありがとうございます!🙏🙏

@noridev noridev closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants