Matt Baer
25d52df9a3
Set default Context in NewArticle / NewNote
2026-02-20 14:47:22 -05:00
Matt Baer
84d7479954
Add Monetization property to Object struct
2026-02-20 14:32:13 -05:00
Matt Baer
b6521cded2
Merge branch 'main' of github.com:writeas/web-core
2026-01-15 15:04:57 -05:00
Matt Baer
180136e6db
Add Web Monetization properties
2025-10-23 14:15:03 -04:00
Matt Baer
cf9f5db56b
Add Preview field to Object
...
This supports the `preview` AS2 attribute to support short-form previews
for `article`s, per FEP-b2b8.
2025-05-07 17:52:29 -04:00
Matt Baer
a0c5600cc3
Export ToPublic constant
2024-04-11 16:19:18 -04:00
Matt Baer
d81124d454
Ensure Updated field will be omitted when nil or zero
2023-10-02 21:30:47 -04:00
Matt Baer
adbbafe3ee
Add Activity.Updated field
...
Per the Mastodon docs, we need to send an `updated` parameter for
`Update` activities to work correctly.
https://docs.joinmastodon.org/spec/activitypub/#supported-activities-for-statuses
2023-10-02 19:27:51 -04:00
Matt Baer
ab8ed5dd58
Support sending out activities around Persons
2022-05-11 18:06:23 -04:00
Matt Baer
28cf6b3866
Fix TestNewImageAttachment tests
2021-09-13 15:32:27 -04:00
Matt Baer
8b45bd4fcc
Support creating Document attachments
...
In particular, this will support audio attachments.
Ref T872
2021-09-13 15:32:10 -04:00
Matt Baer
8dbd86535d
Don't return pointer from NewImageAttachment()
2021-03-24 15:47:23 -04:00
Matt Baer
f534cc9f9b
Fix TagMention type
2021-03-24 15:46:13 -04:00
Matt Baer
a77cafb3ae
Add NewImageAttachment func
2021-03-24 15:45:58 -04:00
Matt Baer
48cbbf652a
Support attachments on activitystreams.Object
2021-03-24 15:33:34 -04:00
Matt Baer
f54ee176fc
Remove commentsEnabled AP extension
...
This isn't used.
2019-11-11 21:56:08 +09:00
Matt Baer
7b4bf5c1b2
Include extensions when building Create & Update activities
2019-04-04 16:57:46 -04:00
Matt Baer
ad1a4272b0
Support new commentsEnabled property
...
This adds a CommentsEnabled field to the activitystreams.Object struct,
as well as the Extensions needed in the Context field in order to
describe the field.
This is a field previously supported by PeerTube, and just recently
added in PixelFed.
2019-04-04 16:29:00 -04:00
Matt Baer
05f387ffa1
Omit empty endpoints.sharedInbox
...
This fixes writeas/writefreely#8
2018-11-11 11:55:28 -05:00
Matt Baer
eba1520b79
Support tag property on objects
2018-08-18 12:34:29 -04:00
Matt Baer
63de2e6491
Support creating Follow activities
2018-08-17 20:42:39 -04:00
Matt Baer
9d28aa5dab
Add NewUpdateActivity func
2018-08-16 20:31:25 -04:00
Matt Baer
b9e200c53b
Use object's Published date in Create activity
2018-08-12 22:34:31 -04:00
Matt Baer
e373e59418
Allow any type in OrderedCollectionPage.OrderedItems
2018-08-11 10:52:24 -04:00
Matt Baer
be77b6dedc
Create activities only with ID
...
Instead of including /activity at the end
2018-08-08 16:04:01 -04:00
Matt Baer
c9787530db
Support creating Delete activities
2018-08-08 15:29:42 -04:00
Matt Baer
0f417dd897
Add documentation to activity.go
...
Including the activitystreams package.
2018-08-04 14:38:40 +02:00
Matt Baer
26688eb59d
Move namespace string into const
2018-08-04 14:23:14 +02:00
Matt Baer
57919aaaec
Add Endpoints property to Actor
2018-08-03 00:22:42 +02:00
Matt Baer
50824cd75a
Fix parsing @context property
...
Previously this would fail if the @context property also contained
something other than a string, like Mastodon does.
2018-08-03 00:21:06 +02:00
Matt Baer
2b398e3b5a
Support Article objects
...
Includes a new Name field for them to use.
2018-07-24 20:09:31 +02:00
Matt Baer
98f3fe9a4c
Add missing Context property in Create activity
2018-06-25 13:37:46 -04:00
Matt Baer
2432e9717e
Make OrderedCollection{Page} funcs generalized for any collection
2018-06-25 13:37:08 -04:00
Matt Baer
d67ec28bcc
Leave out certain properties in Activity JSON
2018-06-25 13:35:47 -04:00
Matt Baer
05ac12f10e
Add privateKey on Person
2018-06-25 11:32:12 -04:00
Matt Baer
b5d7dbe3a3
Add support for including a public key on a Person
2018-06-24 21:08:46 -04:00
Matt Baer
d16108618b
Add basic Note and Activity types
2018-06-24 21:06:26 -04:00
Matt Baer
e7db291bd3
Add BaseObject
2018-06-22 17:11:07 -04:00
Matt Baer
e99c8d6b4d
Add basic activitystreams.Person type
2018-06-22 16:42:38 -04:00