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
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
e313cb0ecf
Add Category.IsCategory field
2023-09-14 14:27:06 -04:00
Matt Baer
5a77fdf807
Add "archive.org_bot" as bot phrase
2023-09-14 14:26:53 -04:00
Matt Baer
7dc8a92493
Catch all Bing and Googlebots, plus clean up
2023-07-06 18:38:34 -04:00
Matt Baer
dee1e7cfbb
Update bots list
...
Also add and sort prefixes
2023-07-06 18:29:39 -04:00
Matt Baer
edb6b3fe63
Re-gofmt bots.go
2023-07-06 17:50:20 -04:00
Matt Baer
4934315624
Reformat example code on PostDescription
2023-04-04 12:10:40 -04:00
Matt Baer
4e8d67e937
Update go.sum with go-strip-markdown
2023-04-04 12:10:20 -04:00
Matt Baer
9e2b7620b1
Add funcs PostTitle, GetSlug, GetSlugFromPost
2023-04-04 12:09:49 -04:00
Matt Baer
73b029dffa
Support decoding PKCS#8 keys
...
These are generated by OpenSSL v3. Previously, key decoding would fail,
breaking federation.
This fixes #14
2022-11-11 01:56:53 -05:00
Matt Baer
ab8ed5dd58
Support sending out activities around Persons
2022-05-11 18:06:23 -04:00
Matt Baer
0da0bcaf01
Support HTML links with rel attr in ApplyBasicAccessibleMarkdown
...
Ref T874 T744
2022-01-18 16:27:28 -05:00
Matt Baer
3e1dcd609c
Restore default title dash
2022-01-06 13:35:11 -05:00
Matt Baer
251490523d
Add ApplyBasicAccessibleMarkdown func
2021-12-15 15:59:22 -05:00
Matt Baer
789795d7fb
Update Japanese translations
2021-11-05 11:00:54 -04:00
Matt Baer
482d2a0340
Update Italian translations
2021-11-05 10:59:12 -04:00
Matt Baer
b0d08b0b2d
Add Hebrew translations
2021-11-05 10:57:53 -04:00
Matt Baer
4ea5f505e1
Update Greek translations
2021-11-05 10:56:23 -04:00
Matt Baer
6594abfd76
Update German translations
2021-11-05 10:55:04 -04:00
Matt Baer
8e58a42997
Add Galician translations
2021-11-05 10:52:59 -04:00
Matt Baer
ed63d3d637
Add Basque translations
2021-11-05 10:51:06 -04:00
Matt Baer
61c88f6532
Update Esperanto translation
2021-11-05 10:49:53 -04:00
Matt Baer
05ae34b399
Add Dutch translations
2021-11-05 10:47:36 -04:00
Matt Baer
11821b1fe1
Add Danish translations
2021-11-05 10:45:30 -04:00
Matt Baer
26a278eba8
Add new phrases (defaults)
2021-11-05 10:43:35 -04:00
Matt Baer
3b7d4deeaa
Add Czech translations
2021-11-05 10:41:30 -04:00
Matt Baer
44e795b77d
Update Chinese translation
2021-11-05 10:38:14 -04:00
Matt Baer
982e31c5be
Update Arabic translation
2021-11-05 10:32:33 -04:00
Matt Baer
c643a95bda
Update French translations
2021-11-05 10:30:08 -04:00
Matt Baer
ba85819607
Add PostCount property to Category
2021-11-03 13:59:21 -04:00
Matt Baer
f276f4d64a
Add NewCategoryFromPartial func
2021-10-16 15:27:37 -04:00
Matt Baer
375d22d230
Add HashtagFromTitle helper
2021-10-16 13:19:00 -04:00
Matt Baer
bec10e41b5
Merge branch 'main' of github.com:writeas/web-core into main
2021-10-15 15:38:45 -04:00
Matt Baer
a8daef8401
Add category pkg
...
This supports categories in Write.as / WriteFreely.
Ref T809
2021-09-29 17:01:17 -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
5fb147fe78
Add PostLede and TruncToWord tests from WriteFreely
2021-04-21 11:50:00 -04:00
Matt Baer
fd1559928a
Copy post parsing funcs to posts pkg
2021-04-13 23:49:59 -04:00
Matt Baer
95a3a717ed
Move remaining writeas/nerds/store funcs to web-core
...
Finishes the work started in #8 .
2021-03-30 12:44:22 -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
68a680d1b0
Add silobridge package
2020-08-13 12:17:34 -04:00
Matt Baer
f54ee176fc
Remove commentsEnabled AP extension
...
This isn't used.
2019-11-11 21:56:08 +09:00
Matt Baer
45b1985b97
Change Write.as -> WriteFreely in README
2019-11-11 21:48:19 +09:00
Matt Baer
46304124ec
Document posts.ExtractTitle func
2019-05-30 10:12:34 -04:00
Matt Baer
1f29da565f
Include calling filename and line # in error logs
...
...instead of the filename and line number of the Printf call in
log.Error()
2019-05-23 06:59:22 -04:00
Matt Baer
7b4bf5c1b2
Include extensions when building Create & Update activities
2019-04-04 16:57:46 -04:00
Matt Baer
78107a0269
Merge branch 'master' of github.com:writeas/web-core
2019-04-04 16:36:11 -04:00
Matt Baer
528e59e922
Update README to explain use in WriteFreely
2019-04-04 16:35:50 -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
ce8cb5ee19
Use #writefreely badge, not Slack
2019-01-10 21:42:25 -05:00
Matt Baer
5631982c2b
Support creating word-ish password
...
This adds the NewWordish() func
2019-01-10 20:46:03 -05:00
Matt Baer
4cb17a6518
Add title dash
...
This defaults to the em dash, but uses an en dash on German posts.
Part of writeas/writefreely#1
2018-12-24 13:48:21 -05:00
Matt Baer
05f387ffa1
Omit empty endpoints.sharedInbox
...
This fixes writeas/writefreely#8
2018-11-11 11:55:28 -05:00
Matt Baer
265880c2cf
Add tags package documentation
2018-10-28 12:01:02 -04:00
Matt Baer
316410bd35
Don't fail test when repeat slug generated
2018-10-16 23:21:12 -04:00
Matt Baer
3d47537e1f
Add stringmanip package
2018-10-16 22:58:06 -04:00
Matt Baer
567e0c6ef0
Add i18n.LangIsRTL func
2018-10-16 20:38:27 -04:00
Matt Baer
73bffef9af
Add tags.Extract() func
2018-10-16 20:33:34 -04:00
Matt Baer
e5a5d63c6f
Add Convert(JSON|SQL) funcs
2018-10-16 18:26:08 -04:00
Matt Baer
6c98a50085
Add safe slug generation func in package id
2018-10-15 17:41:41 -04:00
Matt Baer
fcb3ad5c6b
Add query package
2018-10-14 19:08:14 -04:00
Matt Baer
3b93e92115
Fix Travis Go version
2018-10-14 15:52:15 -04:00
Matt Baer
7ea3998ccf
Add new auth funcs for parsing tokens
2018-10-14 15:35:33 -04:00
Matt Baer
41f4a1a2fa
Add package log
2018-10-14 15:25:23 -04:00
Matt Baer
b414a83eb5
Change license from MIT to MPL
2018-10-14 15:21:12 -04:00
Matt Baer
355476e321
Add posts.ExtractTitle func
2018-10-10 15:16:54 -04:00
Matt Baer
73c7314873
Update Travis file to Go 1.10
2018-09-30 20:08:15 -04:00
Matt Baer
27237b1fff
Add Slovak localization
2018-09-23 15:47:00 -04:00
Matt Baer
3d934b1599
Add Turkish localization
2018-09-14 17:58:17 +02:00
Matt Baer
e4ab903634
Update Arabic translations
2018-09-03 16:59:52 -04:00
Matt Baer
789448b7de
Add Tajik localization
2018-09-02 12:44:33 -04:00
Matt Baer
5baecfdf93
Add Persian localization
2018-09-02 12:44:15 -04:00
Matt Baer
b3715b7357
Add Esperanto localization
2018-09-02 12:43:58 -04:00
Matt Baer
ce799c9a50
Add Arabic localization
2018-09-02 12:43:37 -04:00
Matt Baer
f79ee1acb1
Support decoding public keys
2018-08-21 16:43:21 -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
e373e59418
Allow any type in OrderedCollectionPage.OrderedItems
2018-08-11 10:52:24 -04:00
Matt Baer
d9bfef1071
Add Friendica as bot
2018-08-10 16:46:02 -04:00
Matt Baer
65e5e6cf6d
Add forum badge
2018-08-10 11:02:00 -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
7182ec7db1
Add hackney as bot
2018-08-08 16:03:14 -04:00
Matt Baer
c9787530db
Support creating Delete activities
2018-08-08 15:29:42 -04:00
Matt Baer
582ab04ab5
Move explicit bot UA string tests to prefix tests
...
Also look for python-requests/*
2018-08-04 17:28:29 +02:00
Matt Baer
0f417dd897
Add documentation to activity.go
...
Including the activitystreams package.
2018-08-04 14:38:40 +02:00
Matt Baer
badc52773f
Add repo description
2018-08-04 14:28:57 +02:00
Matt Baer
e998deef94
Add GoDoc link
2018-08-04 14:23:44 +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
a0cf234c62
Add Chinese (simplified) localization
2018-07-09 09:50:29 -04:00
Matt Baer
25bf5066c6
Remove http.rb version numbers from bots test
2018-07-04 16:50:43 -04:00