3fea5645f8
Add tracing ( #1942 )
2021-11-23 12:16:47 +00:00
Dessalines
3e062a9959
Merge pull request #1938 from LemmyNet/once_cell
...
Use once_cell instead of lazy_static
2021-11-22 14:27:08 -05:00
e88106cef4
Use once_cell instead of lazy_static
2021-11-22 19:58:31 +01:00
Dessalines
3d08e6c1fc
Adding unique constraint for activity ap_id. Fixes #1878 ( #1935 )
...
* Adding unique constraint for activity ap_id. Fixes #1878
* Removing is_activity_already_known
2021-11-22 18:57:03 +00:00
05d43150bc
Making public key required. Fixes #1934
2021-11-22 10:10:18 -05:00
afccd5cf69
Replace activitystreams crate with activitystreams-kinds
2021-11-22 14:28:57 +01:00
3e4fe89a45
Fix build error in #1914
2021-11-19 18:05:23 +01:00
Dessalines
6d35508f08
Merge pull request #1914 from LemmyNet/dont-announce-note
...
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-19 11:48:47 -05:00
Dessalines
712dabd16b
Merge pull request #1918 from LemmyNet/fix-smithereen-webfinger
...
Fix Smithereen webfinger, remove duplicate webfinger impl (fixes #1916 )
2021-11-18 14:47:34 -05:00
da89ea22fb
Fix Smithereen webfinger, remove duplicate webfinger impl ( fixes #1916 )
2021-11-18 19:28:53 +01:00
aeb34199f5
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-18 18:41:43 +01:00
a2707e1c56
Community outbox should only contain activities sent by community ( fixes #1916 )
2021-11-18 18:31:50 +01:00
f4616789a7
Version 0.14.1
2021-11-17 16:25:50 -05:00
c29366328e
Version 0.14.0
2021-11-17 11:28:16 -05:00
dc3858c82d
Version 0.14.0-rc.2
2021-11-17 09:14:54 -05:00
db631005d3
Fix error due to same activity being inserted in database twice
2021-11-16 19:13:05 +01:00
3249060f67
Remove to field from follow activities
2021-11-16 19:13:05 +01:00
20cddf5e81
Support mastodon deletes
2021-11-16 18:07:47 +01:00
7f4a773b88
Create and Note always need to tag parent creator, for mastodon notifications
2021-11-16 18:07:47 +01:00
c1f1b8aa0f
Activities in community should also be sent to actors in cc
2021-11-16 18:07:45 +01:00
579ca37ddf
Make webfinger standard compliant
2021-11-16 18:03:09 +01:00
23641fcd06
Use serde_json::to_value
2021-11-15 21:11:44 -05:00
Dessalines
09cd32034b
Fixing activity serialization. Fixes #1900 ( #1901 )
2021-11-15 20:26:48 +00:00
497564359b
Version 0.14.0-rc.1
2021-11-11 14:57:25 -05:00
1b9414f292
More federation compat ( #1894 )
...
* Make HTTP signatures compatible with Pleroma
* Send Announce/Page, Announce/Note for Pleroma compatibility
* remove unused code
2021-11-11 14:49:15 -05:00
Dessalines
8d4c4fdf6c
Adding clippy:unwrap to husky. Fixes #1892 ( #1893 )
2021-11-11 12:18:08 +00:00
9a1fe154db
Remove header guard for activitypub routes
2021-11-10 15:08:33 +01:00
Dessalines
76220a4523
Fixing clippy lints. ( #1885 )
...
* Fixing clippy lints.
* Revert object id display
* Trying to fix clippy again
2021-11-09 18:16:37 +00:00
5319046dc7
Add federation test cases for Smithereen and Mastodon
2021-11-09 17:16:58 +01:00
c21c142a9a
Include apub context from file, so that it can be embedded in docs
2021-11-08 16:04:02 +01:00
252d87d332
Fix clippy error
2021-11-08 13:16:14 +01:00
888e683856
For verify_is_public() we also need to check cc field
2021-11-06 18:44:34 +01:00
a5a674a270
Add method ApubObject.verify()
2021-11-06 18:35:14 +01:00
02ce7bdc7d
Remove unused ActorType methods
2021-11-06 15:01:00 +01:00
8ea21c39b7
Reduce stack memory usage in apub code
...
- use our own, smaller Endpoints struct
- wrap ObjectId.url in Box
- adjust usage of Box in different places
2021-11-06 14:53:39 +01:00
c725514841
Change to_apub and from_apub to take by value and avoid cloning
2021-11-06 14:47:58 +01:00
2edf8ba157
Move ObjectId to library
2021-11-05 21:37:46 +01:00
bd3352423a
Remove ActivityFields trait, deserialize into another struct instead
2021-11-05 21:14:19 +01:00
969a7f2d1b
Refactoring apub code
2021-11-05 21:12:10 +01:00
Dessalines
a83113935d
Check if post or comment are deleted first. Fixes #1864 ( #1867 )
...
* Check if post or comment are deleted first. Fixes #1864
* Refactoring delete apub.
* Revert "Refactoring delete apub."
This reverts commit ba2c3d06cfb870efe792f4b2541036265b425156.
2021-11-03 17:47:24 +00:00
Dessalines
1bec551945
Merge pull request #1874 from LemmyNet/protocol-testing
...
Protocol testing
2021-11-03 11:23:26 -04:00
41f7bcc0d2
Correctly use and document check_is_apub_id_valid() param use_strict_allowlist
2021-11-02 21:39:06 +01:00
b396344eae
Merge two functions into one
2021-11-02 21:39:06 +01:00
1c6f74cad5
Convert note.content and chat_message.content to html ( fixes #1871 )
2021-11-02 21:39:02 +01:00
Dessalines
d4753049d7
Upgrade background_jobs to 0.9.1 #1820 ( #1875 )
2021-11-02 20:27:24 +00:00
0bde2d595e
Add tests for parsing activities and collections
2021-11-02 12:44:51 +01:00
aaaf039779
Move apub test files into tree structure
2021-10-29 16:54:19 +02:00
03d8ac75ef
Move activity structs to protocol folder
2021-10-29 12:50:32 +02:00
5ff044346f
Move object and collection structs to protocol folder
2021-10-29 12:50:32 +02:00
358ef99ea2
Rewrite community followers and user outbox to use our own structs
2021-10-29 12:50:32 +02:00