2019-10-09 20:30:55 +02:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2019 Ted Unangst
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
|
|
.\"
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
.\"
|
|
|
|
.Dd $Mdocdate$
|
|
|
|
.Dt ACTIVITYPUB 7
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm activitypub
|
|
|
|
.Nd notes about the honk implementation
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Xr honk 1
|
|
|
|
utility processes status updates and other microblog activities using the
|
|
|
|
.Nm ActivityPub
|
|
|
|
protocol to exchange messages with other servers.
|
|
|
|
The implementation is subject to interpretation, and not all implemntations
|
|
|
|
behave in the same way.
|
|
|
|
This document attempts to clarify honk's behavior.
|
|
|
|
It is not intended to be a complete description of
|
|
|
|
.Nm ActivityPub ,
|
|
|
|
but may be useful as a guide to other implementors looking to interoperate.
|
|
|
|
.Ss OBJECTS
|
|
|
|
The following object or document types are supported.
|
|
|
|
.Bl -tag -width tenletters
|
|
|
|
.It Vt Note
|
|
|
|
Fully supported.
|
|
|
|
The default object type for honk.
|
|
|
|
.It Vt Article
|
|
|
|
Fully supported.
|
|
|
|
.It Vt Page
|
|
|
|
Supported.
|
|
|
|
.It Vt Question
|
|
|
|
Read only support.
|
|
|
|
Appears similar to a Note.
|
|
|
|
.It Vt Event
|
|
|
|
Supported.
|
|
|
|
Appears similar to a Note.
|
|
|
|
Can be both created and received, but
|
|
|
|
.Vt Invite
|
2019-10-09 23:11:25 +02:00
|
|
|
activities are ignored.
|
2019-10-09 20:30:55 +02:00
|
|
|
.It Vt Video
|
|
|
|
Limited support.
|
|
|
|
.It Vt Audio
|
|
|
|
Limited Support.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Honk primarily supports HTML content, not markdown or other formats,
|
|
|
|
with a wide range of permitted HTML tags in object
|
|
|
|
.Fa content
|
|
|
|
fields.
|
|
|
|
The following tags are supported.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
a, img, span,
|
|
|
|
div, h1, h2, h3, h4, h5, h6, hr,
|
|
|
|
table, thead, tbody, th, tr, td, colgroup, col,
|
|
|
|
p, br, pre, code, blockquote, q,
|
|
|
|
samp, mark, ins, dfn, cite, abbr, address,
|
|
|
|
strong, em, b, i, s, u, sub, sup, del, tt, small,
|
|
|
|
ol, ul, li, dl, dt, dd
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2019-10-10 06:54:46 +02:00
|
|
|
The following tag attributes are permitted.
|
2019-10-09 20:30:55 +02:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
href, src, alt, colspan, rowspan
|
|
|
|
.Ed
|
2019-10-10 06:54:46 +02:00
|
|
|
.Pp
|
|
|
|
The following class names are used for syntax highlighting code blocks.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
kw, bi, st, nm, tp, op, cm, al, dl
|
|
|
|
.Ed
|
2019-10-09 20:30:55 +02:00
|
|
|
.Ss ACTIVITIES
|
|
|
|
The following activities are supported.
|
|
|
|
.Bl -tag -width tenletters
|
|
|
|
.It Vt Create
|
|
|
|
Fully supported.
|
|
|
|
.It Vt Announce
|
|
|
|
Supported with share semantics.
|
|
|
|
.It Vt Read
|
|
|
|
Supported.
|
|
|
|
Primarily used to acknowledge replies and complete threads, without
|
|
|
|
additional semantics.
|
|
|
|
.It Vt Follow
|
|
|
|
Supported.
|
|
|
|
.Vt Accept
|
|
|
|
and
|
|
|
|
.Vt Undo
|
|
|
|
require that the original request be quoted, not referred to by URI.
|
|
|
|
.It Vt Update
|
2019-10-09 23:11:25 +02:00
|
|
|
Supported.
|
2019-10-09 20:30:55 +02:00
|
|
|
Honk sends and receives
|
|
|
|
.Vt Update
|
|
|
|
activities.
|
|
|
|
.It Vt Delete
|
|
|
|
Does what it can.
|
|
|
|
.It Vt Like
|
|
|
|
Don't be ridiculous.
|
|
|
|
.El
|
|
|
|
.Ss METADATA
|
|
|
|
The following additional object types are supported as
|
|
|
|
.Fa tag
|
|
|
|
or
|
|
|
|
.Fa attachment .
|
|
|
|
.Bl -tag -width tenletters
|
|
|
|
.It Mention
|
2019-10-09 23:11:25 +02:00
|
|
|
Pretty @ machine.
|
2019-10-09 20:30:55 +02:00
|
|
|
.It Emoji
|
|
|
|
Inline text :emoji: with image replacement.
|
|
|
|
.It Place
|
|
|
|
Attached as a
|
|
|
|
.Fa tag
|
|
|
|
to
|
|
|
|
.Vt Note
|
|
|
|
and
|
|
|
|
.Fa location
|
|
|
|
to
|
|
|
|
.Vt Event .
|
|
|
|
Supports
|
|
|
|
.Fa name ,
|
|
|
|
.Fa url ,
|
|
|
|
.Fa latitude ,
|
|
|
|
and
|
|
|
|
.Fa longitude .
|
|
|
|
.It Document
|
|
|
|
Plain text and images in jpeg, gif, png, and webp formats are supported.
|
2019-10-09 23:11:25 +02:00
|
|
|
Other formats are linked to origin.
|
2019-10-09 20:30:55 +02:00
|
|
|
.El
|
2019-10-09 23:35:00 +02:00
|
|
|
.Ss EXTENSIONS
|
|
|
|
Honk also supports a
|
|
|
|
.Vt Ping
|
|
|
|
activity and will respond with a
|
|
|
|
.Vt Pong
|
|
|
|
activity.
|
|
|
|
This is useful for debugging networking connectivity issues without
|
|
|
|
visible side effects.
|
|
|
|
See ping.txt for details.
|
2019-10-09 20:30:55 +02:00
|
|
|
.Ss SECURITY
|
|
|
|
Honk uses http signatures.
|
|
|
|
.Ss WEBFINGER
|
|
|
|
Honk implements the
|
|
|
|
.Vt webfinger
|
|
|
|
end point and will use it for @mention resolution.
|
|
|
|
It is not required for federation.
|
2019-10-09 23:11:25 +02:00
|
|
|
.Ss LD-JSON
|
|
|
|
Not really.
|
2019-10-09 20:30:55 +02:00
|
|
|
.Sh SEE ALSO
|
2019-10-09 23:11:25 +02:00
|
|
|
.Xr intro 1 ,
|
2019-10-09 20:30:55 +02:00
|
|
|
.Xr honk 1
|
|
|
|
.Sh STANDARDS
|
|
|
|
.Pp
|
|
|
|
.Lk https://www.w3.org/TR/activitypub/ "ActivityPub"
|
|
|
|
.Pp
|
|
|
|
.Lk https://www.w3.org/TR/activitystreams-vocabulary/ "Activity Vocabulary"
|
2019-10-09 23:11:25 +02:00
|
|
|
.Sh CAVEATS
|
|
|
|
The ActivityPub standard is subject to interpretation, and not all
|
|
|
|
implementations are as enlightened as honk.
|