Matt Baer
91ebade091
Add default Context in NewNoteObject
2026-02-20 15:07:03 -05:00
Matt Baer
e4cf634040
Update Web Monetization context
2026-02-20 14:48:44 -05:00
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
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
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
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
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
d67ec28bcc
Leave out certain properties in Activity JSON
2018-06-25 13:35:47 -04:00
Matt Baer
d16108618b
Add basic Note and Activity types
2018-06-24 21:06:26 -04:00