docs/activitypub.7 (view raw)
1.\"
2.\" Copyright (c) 2019 Ted Unangst
3.\"
4.\" Permission to use, copy, modify, and distribute this software for any
5.\" purpose with or without fee is hereby granted, provided that the above
6.\" copyright notice and this permission notice appear in all copies.
7.\"
8.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15.\"
16.Dd $Mdocdate$
17.Dt ACTIVITYPUB 7
18.Os
19.Sh NAME
20.Nm activitypub
21.Nd notes about the honk implementation
22.Sh DESCRIPTION
23The
24.Xr honk 1
25utility processes status updates and other microblog activities using the
26.Nm ActivityPub
27protocol to exchange messages with other servers.
28The specification is subject to interpretation, and not all implementations
29behave in the same way.
30This document attempts to clarify honk's behavior.
31It is not intended to be a complete description of
32.Nm ActivityPub ,
33but may be useful as a guide to other implementors looking to interoperate.
34.Ss OBJECTS
35The following object or document types are supported.
36.Bl -tag -width tenletters
37.It Vt Note
38Fully supported.
39The default object type for honk.
40.It Vt Article
41Fully supported.
42.It Vt Page
43Supported.
44.It Vt Question
45Read only support.
46Appears similar to a Note.
47.It Vt Event
48Supported.
49Appears similar to a Note.
50Can be both created and received, but
51.Vt Invite
52activities are ignored.
53.It Vt Video
54Limited support.
55.It Vt Audio
56Limited Support.
57.El
58.Pp
59Honk primarily supports HTML content, not markdown or other formats,
60with a wide range of permitted HTML tags in object
61.Fa content
62fields.
63The following tags are supported.
64.Bd -literal -offset indent
65a, img, span,
66div, h1, h2, h3, h4, h5, h6, hr,
67table, thead, tbody, tfoot, th, tr, td, colgroup, col,
68p, br, pre, code, blockquote, q,
69caption, kbd, time, wbr, aside,
70ruby, rtc, rb, rt, details, summary,
71samp, mark, ins, dfn, cite, abbr, address,
72strong, em, b, i, s, u, sub, sup, del, tt, small,
73ol, ul, li, dl, dt, dd
74.Ed
75.Pp
76The following tag attributes are permitted.
77.Bd -literal -offset indent
78href, src, alt, colspan, rowspan
79.Ed
80.Pp
81The following class names are used for syntax highlighting code blocks.
82.Bd -literal -offset indent
83kw, bi, st, nm, tp, op, cm, al, dl
84.Ed
85.Ss ACTIVITIES
86The following activities are supported.
87.Bl -tag -width tenletters
88.It Vt Create
89Fully supported.
90.It Vt Announce
91Supported with share semantics.
92.It Vt Read
93Supported.
94Primarily used to acknowledge replies and complete threads.
95Can be interpreted to mean reply is approved, if not endorsed.
96.It Vt Add
97Works with collections.
98.It Vt Follow
99Supported.
100Can follow both actors and collections.
101.Vt Accept
102and
103.Vt Undo
104require that the original request be quoted, not referred to by URI.
105.It Vt Update
106Supported.
107Honk sends and receives
108.Vt Update
109activities.
110.It Vt Delete
111Does what it can.
112.It Vt Like
113Don't be ridiculous.
114.It Vt ReactionEmoji
115Kinda sorta.
116.El
117.Ss METADATA
118The following additional object types are supported, typically as
119.Fa tag
120or
121.Fa attachment .
122.Bl -tag -width tenletters
123.It Mention
124Pretty @ machine.
125.It Emoji
126Inline text :emoji: with image replacement.
127.It Place
128Included as a
129.Fa location .
130Supports
131.Fa name ,
132.Fa url ,
133.Fa latitude ,
134and
135.Fa longitude .
136.It Document
137Plain text and images in jpeg, gif, png, and webp formats are supported.
138Other formats are linked to origin.
139.El
140.Pp
141The
142.Fa replies
143array will be populated with a list of acknowledged replies.
144.Ss EXTENSIONS
145Honk also supports a
146.Vt Ping
147activity and will respond with a
148.Vt Pong
149activity.
150This is useful for debugging networking connectivity issues without
151visible side effects.
152See ping.txt for details.
153.Ss SECURITY
154Honk uses http signatures.
155.Ss WEBFINGER
156Honk implements the
157.Vt webfinger
158end point and will use it for @mention resolution.
159It is not required for federation.
160.Ss LD-JSON
161Not really.
162.Sh SEE ALSO
163.Xr intro 1 ,
164.Xr honk 1
165.Sh STANDARDS
166.Pp
167.Lk https://www.w3.org/TR/activitypub/ "ActivityPub"
168.Pp
169.Lk https://www.w3.org/TR/activitystreams-vocabulary/ "Activity Vocabulary"
170.Sh CAVEATS
171The ActivityPub standard is subject to interpretation, and not all
172implementations are as enlightened as honk.