Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ap_extensions.md 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. # ChatMessages
  2. ChatMessages are the messages sent in 1-on-1 chats. They are similar to
  3. `Note`s, but the addresing is done by having a single AP actor in the `to`
  4. field. Addressing multiple actors is not allowed. These messages are always
  5. private, there is no public version of them. They are created with a `Create`
  6. activity.
  7. Example:
  8. ```json
  9. {
  10. "actor": "http://2hu.gensokyo/users/raymoo",
  11. "id": "http://2hu.gensokyo/objects/1",
  12. "object": {
  13. "attributedTo": "http://2hu.gensokyo/users/raymoo",
  14. "content": "You expected a cute girl? Too bad.",
  15. "id": "http://2hu.gensokyo/objects/2",
  16. "published": "2020-02-12T14:08:20Z",
  17. "to": [
  18. "http://2hu.gensokyo/users/marisa"
  19. ],
  20. "type": "ChatMessage"
  21. },
  22. "published": "2018-02-12T14:08:20Z",
  23. "to": [
  24. "http://2hu.gensokyo/users/marisa"
  25. ],
  26. "type": "Create"
  27. }
  28. ```
  29. This setup does not prevent multi-user chats, but these will have to go through
  30. a `Group`, which will be the recipient of the messages and then `Announce` them
  31. to the users in the `Group`.