Commit d8e6cc6
Add GoToSocial interaction controls vocabulary
Add type-safe vocabulary support for GoToSocial's interaction controls,
which allow post authors to specify who can like, reply to, or announce
their posts and to approve interactions.
New typeless embedded types (like Endpoints):
- InteractionPolicy: attached to posts via interactionPolicy, contains
canLike, canReply, and canAnnounce sub-policies
- InteractionRule: each sub-policy with automaticApproval and
manualApproval URI lists
New Activity subtypes for requesting interaction approval:
- LikeRequest, ReplyRequest, AnnounceRequest
New Object subtypes for proving approved interactions:
- LikeAuthorization, ReplyAuthorization, AnnounceAuthorization
(with interactingObject and interactionTarget properties)
New properties on Object:
- interactionPolicy, approvedBy, likeAuthorization,
replyAuthorization, announceAuthorization
All Object subtypes now include the GoToSocial namespace context
(https://gotosocial.org/ns) in their defaultContext so that inherited
GTS properties serialize correctly in compact JSON-LD.
Part of #453
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a70b9d0 commit d8e6cc6
71 files changed
Lines changed: 21207 additions & 839 deletions
File tree
- packages
- fedify/src
- federation
- sig
- fixture/src/fixtures/gotosocial.org
- vocab-tools/src/__snapshots__
- vocab/src
- __snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| |||
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
| 401 | + | |
399 | 402 | | |
400 | 403 | | |
401 | 404 | | |
| |||
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| 500 | + | |
497 | 501 | | |
498 | 502 | | |
499 | 503 | | |
| |||
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
| 686 | + | |
682 | 687 | | |
683 | 688 | | |
684 | 689 | | |
| |||
704 | 709 | | |
705 | 710 | | |
706 | 711 | | |
| 712 | + | |
707 | 713 | | |
708 | 714 | | |
709 | 715 | | |
| |||
802 | 808 | | |
803 | 809 | | |
804 | 810 | | |
| 811 | + | |
805 | 812 | | |
806 | 813 | | |
807 | 814 | | |
| |||
871 | 878 | | |
872 | 879 | | |
873 | 880 | | |
| 881 | + | |
874 | 882 | | |
875 | 883 | | |
876 | 884 | | |
| |||
936 | 944 | | |
937 | 945 | | |
938 | 946 | | |
| 947 | + | |
939 | 948 | | |
940 | 949 | | |
941 | 950 | | |
| |||
1005 | 1014 | | |
1006 | 1015 | | |
1007 | 1016 | | |
| 1017 | + | |
1008 | 1018 | | |
1009 | 1019 | | |
1010 | 1020 | | |
| |||
1254 | 1264 | | |
1255 | 1265 | | |
1256 | 1266 | | |
| 1267 | + | |
1257 | 1268 | | |
1258 | 1269 | | |
1259 | 1270 | | |
| |||
1386 | 1397 | | |
1387 | 1398 | | |
1388 | 1399 | | |
| 1400 | + | |
1389 | 1401 | | |
1390 | 1402 | | |
1391 | 1403 | | |
| |||
1565 | 1577 | | |
1566 | 1578 | | |
1567 | 1579 | | |
| 1580 | + | |
1568 | 1581 | | |
1569 | 1582 | | |
1570 | 1583 | | |
| |||
1589 | 1602 | | |
1590 | 1603 | | |
1591 | 1604 | | |
| 1605 | + | |
1592 | 1606 | | |
1593 | 1607 | | |
1594 | 1608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments