Sending a private message without cc causes a 500 error
-
@freamon As others have said, ChatMessage is non-standard. The Create/Note is not particularly great for private messages, but whatever. Anyway, cc is not a required field of Note nor Create, so any software that would complain has a bug.
-
@rikudou Yeah, sorry, I didn't mean to derail this thread. The GitHub issue was intended to only really be about the 'cc' problem, because it looks like PieFed will have to start sending Create/Note to non-Lemmy platforms anyway, but it'd easier if 'cc' doesn't have to be artificially included to keep NodeBB happy.
-
Missing cc on incoming non-public payload causes note assertion failure 路 Issue #13202 路 NodeBB/NodeBB
https://community.nodebb.org/topic/18642/sending-a-private-message-without-cc-causes-a-500-error/14
GitHub (github.com)
-
In a bit of code that is too clever for my own good, I collapse
to
andcc
into a single deduplicated array with:const recipients = new Set([...object.to, ...object.cc]);
Which of course assumes that both properties are iterable. That has now been changed to an even clever-er (and less readable):
const recipients = new Set([...(object.to || []), ...(object.cc || [])]);
-
@julian Wouldn't
??
be better? -
@rikudou maybe? Nullish coalescing sounds really cool, but I've avoided it for years because of browser compatibility.
Node has had support forever (since v14, I've discovered), but I just don't know how to use it is all
-
FYI the next Lemmy version will use
Create/Note
for private messages. You can test it on voyager.lemmy.mlAdd note wrapper (fixes #2657) by Nutomic 路 Pull Request #5221 路 LemmyNet/lemmy
Private messages and public comments are quite awkward in Activitypub, because the json format looks identical. They only way to differentiate them is to check for the presence or absence of https:...
GitHub (github.com)
It seems all of the test instances are down? I get a 502 no matter which of voyager.lemmy.ml, enterprise.lemmy.ml, and ds9.lemmy.ml I try to open
-
It seems all of the test instances are down? I get a 502 no matter which of voyager.lemmy.ml, enterprise.lemmy.ml, and ds9.lemmy.ml I try to open
Yes not sure whats wrong there, the server was using a lot of cpu for no reason. Restart fixed it for now, let me know if it happens again.
-
Yes not sure whats wrong there, the server was using a lot of cpu for no reason. Restart fixed it for now, let me know if it happens again.
Voyager still has an issue, but the others seem to work now
-
Voyager still has an issue, but the others seem to work now
That instance runs Lemmy 1.0 which is still in alpha state, and the frontend is not compatible yet. So only the api works there.