3aa3d75a1e
Add cargo feature for building lemmy_api_common with mininum deps ( #2243 )
2022-05-03 17:44:13 +00:00
c718882479
Accept comments with hashtags from Friendica ( #2236 )
2022-04-27 16:12:13 +00:00
8337eaefdd
Federate user account deletion ( fixes #1284 ) ( #2199 )
2022-04-07 20:52:17 +00:00
9ac1f46a2b
Dont federate initial upvote ( #2196 )
2022-04-07 20:46:10 +00:00
f9d563d80a
Add missing mod log entries for federated actions ( fixes #1489 ) ( #2198 )
2022-04-07 20:44:28 +00:00
65cac21713
Fix verify_mod_action check for remote admin actions ( #2190 )
...
* Fix verify_mod_action check for remote admin actions
* fix federation test
2022-04-04 14:46:49 +00:00
bfae246734
Migrate towards using page.attachment field for url (ref #2144 ) ( #2182 )
2022-04-01 18:25:19 +00:00
dfb0938738
GNU social compatibility ( #2100 )
...
* Use SourceCompat everywhere (better compat with other software)
* Name field should not be mandatory in Group
* also check page.cc field for community id
* add gnu social tests
* better to use option<sourcecompat>
* update gnu social tests, marked vote as "unlisted"
2022-03-24 16:33:42 +00:00
b406342a14
Dont log error if duplicate activity is received ( fixes #2146 ) ( #2148 )
2022-03-24 16:05:27 +00:00
8112816e99
If viewed actor isnt in db, fetch it from other instance ( #2145 )
2022-03-23 21:27:51 +00:00
166ec196b0
Rework error handling ( fixes #1714 ) ( #2135 )
2022-03-16 20:11:49 +00:00
7d61616dff
Revert "Add logging to debug federation issues (ref #2096 ) ( #2099 )" ( #2130 )
...
This reverts commit e094989a4c
.
2022-03-14 20:18:19 +00:00
f8fb3b41f0
Reject federated downvotes if downvotes are disabled ( fixes #2124 ) ( #2128 )
2022-03-14 18:20:18 +00:00
df757f28b4
Make delete activities backwards compatible with 0.15 ( #2114 )
2022-03-03 19:37:12 +00:00
e094989a4c
Add logging to debug federation issues (ref #2096 ) ( #2099 )
2022-02-17 18:48:45 +00:00
788924d7ff
Merge different delete activities for better compatibility ( fixes #2066 ) ( #2073 )
2022-02-14 10:14:24 -05:00
dd865c5af5
Implement instance actor ( #1798 )
...
* Implement instance actor
* wip: make site bans federate
* finish implementation and unit tests for federated bans
* start adding api tests
* fix api test
* remve site from GetCommunityResponse
* only federate site bans originating from user's home instance
* dont expose site.private_key in api
2022-02-07 19:23:12 +00:00
Dessalines
e65c45f152
Adding temporary bans. Fixes #1423 ( #1999 )
...
* Adding temporary bans. Fixes #1423
* Adding ban_expires to person
* Fix clippy
* Removing ban_expires from federated fields.
* Trying to add expires to blockcommunity apub.
2022-01-08 12:37:07 +00:00
97ebf2f6f3
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-06 16:54:34 -06:00
35cbae61bc
Don't drop error context when adding a message to errors ( #1958 )
...
* Respond directly with LemmyError
Instrument Perform implementations for more precise traces
Use ApiError to format JSON errors when messages are present
Keep SpanTrace output in LemmyError Display impl
* Hide SpanTrace debug output from LemmyError
* Don't log when entering spans, only when leaving
* Update actix-web
* Update actix-rt
* Add newline after error info in LemmyError Display impl
* Propogate span information to blocking operations
* Instrument apub functions
* Use skip_all for more instrument attributes, don't skip 'self' in some api actions
* Make message a static string
* Send proper JSON over websocket
* Add 'message' to LemmyError display if present
* Use a quieter root span builder, don't pretty-print logs
* Keep passwords and emails out of logs
* Re-enable logging Login
* Instrument feeds
* Emit our own errors
* Move error log after status code recording
* Make Sensitive generic over the inner type
* Remove line that logged secrets
2021-12-06 09:54:47 -05:00
27a687bcd0
Dont send email notifications for edited comments ( fixes #1925 )
2021-11-24 22:29:29 +01:00
3fea5645f8
Add tracing ( #1942 )
2021-11-23 12:16:47 +00: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
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
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
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
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
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
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
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
b396344eae
Merge two functions into one
2021-11-02 21:39:06 +01: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