Nutomic
16fe149a6d
Change config pictrs key name ( #2360 )
2022-07-14 14:25:10 -04:00
Nutomic
d0a3d99636
Config changes, remove unused image purge function ( #2343 )
...
* Throw error if old pictrs config item is used, make api key optional
* use doku url feature
* fix doku version
* fix clippy
* remove unused image purge function, remove config migration
2022-07-11 16:38:37 -04:00
Nutomic
63fff96275
Fix problem where actors can have empty public key ( fixes #2347 ) ( #2348 )
2022-07-11 18:25:33 +00:00
Luna
e33736ae47
remove parking_lot ( #2350 )
2022-07-11 17:12:12 +00:00
Dessalines
67a34adf4b
Revert "Use correct url for activitystreams protocol context ( #2326 )" ( #2351 )
...
This reverts commit dc35ab9c2b
.
2022-07-08 10:47:40 +00:00
Dessalines
ff026dc3ff
Adding check for requests with no id or name, adding max limit. ( #2265 )
...
* Adding check for requests with no id or name, adding max limit.
* Consolidating a few functions.
* Fix page min
* Adding more websocket rate limits.
* Add check to GetCommunity
* Use a default message rate limit check.
* Adding a page and limit checker
* Fix clippy
* Fix clippy again
* Adding check for requests with no id or name, adding max limit.
* Consolidating a few functions.
* Fix page min
* Adding more websocket rate limits.
* Add check to GetCommunity
* Use a default message rate limit check.
* Adding a page and limit checker
* Fix clippy
* Fix clippy again
* Fix limit request.
* Move checks to inside limit_and_offset
* Fixing API tests.
* Change NotFound diesel errors to QueryBuilderError
2022-07-08 10:21:33 +00:00
Nutomic
3ef812660c
Dont allow blocking admin ( #2340 )
2022-07-05 23:02:54 +00:00
Nutomic
b7a2677b4d
Be more explicit about returning deleted actors or not ( #2335 )
...
* Be more explicit about returning deleted actors or not
* simplify db queries
2022-07-05 17:40:44 -04:00
Nutomic
587a0de8f7
Specify minimum Rust version 1.57 ( fixes #2333 ) ( #2334 )
...
* Specify minimum Rust version 1.57 (fixes #2333 )
* use latest rust for clippy
* use rust 1.60 for clippy
* no add component
* use official rust docker
* comments
2022-06-28 17:44:55 -04:00
Dessalines
a745fa6f43
Remove update and read site config. Fixes #2306 ( #2329 )
...
* Remove update and read site config. Fixes #2306
* Removing lazy_static, removing Settings::get()
2022-06-22 20:24:54 +00:00
Dessalines
8af913f583
Don't create or initially follow a default community. Fixes #2317 ( #2328 )
...
* Don't create or initially follow a default community. Fixes #2317
* Fix unit tests.
2022-06-22 19:38:27 +00:00
Dessalines
40609549d8
Increase RSS fetch limit to 20. Fixes #2319 ( #2327 )
2022-06-22 12:30:09 +00:00
Dessalines
92d17639cd
Expose pending 2 ( #2282 )
...
* Exposing SubscribedType. Fixes #2281
* Fixing other subscribed fields.
* Fix federation tests
* Add comment about follower row.
2022-06-22 12:05:41 +00:00
Nutomic
dc35ab9c2b
Use correct url for activitystreams protocol context ( #2326 )
2022-06-21 15:27:10 -04:00
Nutomic
cd4d235171
Move setting http_fetch_retry_limit into federation block ( #2314 )
2022-06-14 01:20:30 -04:00
Dessalines
4e12e25c59
Adding admin purging of DB items and pictures. #904 #1331 ( #1809 )
...
* First pass at adding admin purge. #904 #1331
* Breaking out purge into 4 tables for the 4 purgeable types.
* Using CommunitySafe instead in view
* Fix db_schema features flags.
* Attempting to pass API key.
* Adding pictrs image purging
- Added pictrs_config block, for API_KEY
- Clear out image columns after purging
* Remove the remove_images field from a few of the purge API calls.
* Fix some suggestions by @nutomic.
* Add separate pictrs reqwest client.
* Update defaults.hjson
Co-authored-by: Nutomic <me@nutomic.com>
2022-06-13 19:15:04 +00:00
trwnh
5b7376512f
Fix: Use correctly parseable JSON-LD context ( #2299 )
...
* Fix: Use correctly parseable JSON-LD context
* Changed: Better ordering for context document
alphabetized properties
* Changed: Use xsd types instead of schema.org types
* Changed: use simple namespacing
2022-06-13 13:26:56 +00:00
Nutomic
fcaf7a084c
Upgrade activitypub_federation to 0.2.0, add setting federation.debug ( #2300 )
2022-06-08 11:45:39 -04:00
Nutomic
7bc2f9fd6d
Remove unused setup config vars ( #2302 )
2022-06-08 11:44:53 -04:00
Nutomic
c050945b1f
Add pub use for db crates in api_common ( #2305 )
2022-06-08 11:30:20 -04:00
Nutomic
7804a9d893
Accept private like ( #1968 ) ( #2301 )
2022-06-08 11:14:38 -04:00
Paolo Barbolini
0a3b69a259
Bump lettre to 0.10.0-rc.7 ( #2297 )
2022-06-04 22:07:38 -04:00
Nutomic
780832256c
Remove unused cargo.toml files ( #2293 )
2022-06-03 15:56:33 +00:00
Nutomic
5387c262c1
Forbid outgoing requests in activitypub tests ( fixes #2289 ) ( #2294 )
2022-06-03 11:31:22 -04:00
Nutomic
339eab01fd
Embed Peertube videos ( #2261 )
...
* Use og:video attribute for embeds, change Post.embed_html to embed_url
* fix clippy
2022-06-02 21:44:47 +00:00
Nutomic
9a458d2e4b
Run cargo check for each crate with different features (ref #2284 ) ( #2292 )
2022-06-02 18:19:53 +00:00
Nutomic
13ca1111c4
Remove 0.15 federation compat code ( #2131 )
2022-06-02 13:48:53 -04:00
Nutomic
a2a594b763
Extract Activitypub logic into separate library ( #2288 )
...
* Create example for apub lib
* some rewriting of apub lib
* Add LocalInstance struct for apub lib to avoid using Lemmy Settings
* Move ActorType trait to lemmy_apub, because its not needed in library
* Use reqwest_retry instead of custom impl, dont specify timeout on every send()
* Some improvements to example
* Moved inbox handling to library
* bug fixes
* Move context and serde helpers into library
* wip: example changes
* Add lemmy_utils feature to build only LemmyError
* Rename to activitypub_federation
* Remove lemmy_utils dep from activitypub_federation using generic error type
* Finish activitypub example
* Cleanup and fix tests
* Reorganize library files
* Remove ApubObject.to_tombstone()
* Extract activitypub library into separate git repository
2022-06-02 16:33:41 +02:00
Dessalines
1bd57ee5ca
Version 0.16.5
2022-05-30 18:32:31 -04:00
Dessalines
69106589ba
Fix publish
2022-05-26 16:10:36 -04:00
Dessalines
eafb3869f2
Revert "Add pending, and change use specific API response for FollowCommunity…" ( #2283 )
2022-05-26 11:17:04 -04:00
Dessalines
3c111b3062
Dropping default on pending column.
2022-05-20 16:15:14 +00:00
Dessalines
d4ee171b08
Making community_follower.pending column not null.
2022-05-20 16:15:14 +00:00
Dessalines
763dc9668c
Fix formatting.
2022-05-20 16:15:14 +00:00
Dessalines
e6fe9d0325
Fixing unfollow
2022-05-20 16:15:14 +00:00
Dessalines
48f5a2ee5e
Add pending, and change use specific API response for FollowCommunity. Fixes #2246
2022-05-20 16:15:14 +00:00
Nutomic
9ef0efa420
Add legal information ( fixes #721 ) ( #2273 )
2022-05-19 20:32:40 +00:00
Felix Ableitner
426e1b1e51
Update image crate
2022-05-17 13:48:47 -04:00
Felix Ableitner
562b88da9e
Remove youtube metadata test
2022-05-17 16:26:36 +02:00
Dessalines
5eb0dfdc73
Fixing malformed rosetta translations. Fixes #2231
2022-05-13 12:24:29 -04:00
Nutomic
f0ec3015cd
Remove check that avatars/banners are locally hosted ( fixes #2254 ) ( #2255 )
2022-05-10 17:08:13 +00:00
Paolo Barbolini
ef12cd9588
Bump lettre to 0.10.0-rc.6 ( #2250 )
2022-05-09 23:08:13 +00:00
Paolo Barbolini
559e43075a
Simplify building plain/html emails ( #2251 )
2022-05-08 17:00:12 +00:00
Nutomic
7b86441bab
Federate with Peertube ( #2244 )
2022-05-06 23:53:33 +00:00
Nutomic
3053e14be7
Derive default for api request structs, move type enums ( #2245 )
...
* Derive default for api request structs, move type enums
* Simplify api by using enum types directly, instead of string
* Add default and clone for most api structs
2022-05-06 20:55:07 +00:00
Nutomic
3aa3d75a1e
Add cargo feature for building lemmy_api_common with mininum deps ( #2243 )
2022-05-03 17:44:13 +00:00
Nutomic
dd5835fb6e
Add restricted community field to CreateCommunity, UpdateCommunity (ref #2235 ) ( #2242 )
2022-04-29 14:01:10 +00:00
Nutomic
7058cfa1cf
Implement restricted community (only mods can post) ( fixes #187 ) ( #2235 )
...
* Implement restricted community (only mods can post) (fixes #187 )
* review fixes
* fix tests
2022-04-28 20:32:32 +00:00
Nutomic
c718882479
Accept comments with hashtags from Friendica ( #2236 )
2022-04-27 16:12:13 +00:00
Nutomic
2e01e8e42c
Remove unused dependencies ( #2239 )
2022-04-27 17:56:05 +02:00
Nutomic
56b7030901
Fix link metadata unit test ( #2237 )
2022-04-27 15:42:10 +00:00
Nutomic
3488b9aeb5
Dont return "admin" for GET user when no id/name is provided ( fixes #1546 ) ( #2233 )
2022-04-25 21:16:29 +00:00
Nutomic
ae84258c41
Federation: dont overwrite local object from Announce activity ( #2232 )
...
* Federation: dont overwrite local object from Announce activity (fixes #2143 )
* add missing form fields
* refactoring
* add ap_id, updated fields
* fix
2022-04-25 21:11:34 +00:00
Nutomic
00b0b26dfa
Add default post listing type ( fixes #2195 ) ( #2209 )
...
* Add default post listing type (fixes #2195 )
* review fixes
* change column type
2022-04-19 19:05:08 +00:00
Dessalines
24be9f2cd5
Show deny reason to users after a failed login. Fixes #2191 ( #2206 )
...
* Show deny reason to users after a failed login. Fixes #2191
* Updating translations.
* Adding registration_denied translated string.
2022-04-19 10:48:59 +00:00
Dessalines
0a36b16e29
Fix allowlist / blocklist description location. Fixes #2214 ( #2215 )
...
* Fix allowlist / blocklist description location. Fixes #2214
* Fix allowlist check
2022-04-13 18:27:56 +00:00
Nutomic
3951a16447
Split apart api files ( #2216 )
2022-04-13 18:12:25 +00:00
Nutomic
e0381df88a
Expose remote site info in GetCommunity API ( fixes #2208 ) ( #2210 )
...
* Expose remote site info in GetCommunity API (fixes #2208 )
* use instance_actor_id_from_url()
2022-04-13 16:37:54 +00:00
Dessalines
3d8709780a
Fixing unstable post sorts. Fixes #2188 ( #2204 )
2022-04-13 15:33:38 +00:00
Nutomic
bbd739af9b
Change Person, Instance types ( #2200 )
2022-04-12 17:10:35 +00:00
Nutomic
b47a474863
Merge branch 'main' into clippy_fix_2
2022-04-12 10:03:40 +00:00
Nutomic
fed73a72c1
Write mod log for federated sticky/lock post actions ( #2203 )
2022-04-11 23:03:31 +00:00
Dessalines
0bcdfa8be4
Clippy fixes.
2022-04-11 18:51:11 -04:00
Dessalines
c232564fda
Version 0.16.3
2022-04-08 10:20:31 -04:00
Dessalines
4878848955
Version 0.16.3-rc.1
2022-04-08 09:17:00 -04:00
Dessalines
4052900d30
Updating translations
2022-04-08 09:13:46 -04:00
Nutomic
8337eaefdd
Federate user account deletion ( fixes #1284 ) ( #2199 )
2022-04-07 20:52:17 +00:00
Nutomic
9ac1f46a2b
Dont federate initial upvote ( #2196 )
2022-04-07 20:46:10 +00:00
Nutomic
f9d563d80a
Add missing mod log entries for federated actions ( fixes #1489 ) ( #2198 )
2022-04-07 20:44:28 +00:00
Dessalines
37c834725c
Make sure application questionaire is required. Fixes #2189
...
Also fix local image domain check. Was failing for blank strings /
replaces.
2022-04-04 20:58:50 +00:00
Nutomic
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
Nutomic
c7f5337099
Run cargo upgrade ( #2176 )
...
* Run cargo upgrade and cargo update
* Fixing validation (#2179 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-04-01 18:37:51 +00:00
Nutomic
bfae246734
Migrate towards using page.attachment field for url (ref #2144 ) ( #2182 )
2022-04-01 18:25:19 +00:00
Nutomic
56b275acd4
Exclude removed/deleted posts from community outbox ( #2184 )
2022-04-01 18:18:25 +00:00
Nutomic
589d952a95
Fetch community outbox in parallel ( fixes #2180 ) ( #2181 )
2022-04-01 18:06:23 +00:00
Dessalines
4cf0da7b60
Clippy fixes.
2022-03-30 10:58:03 -04:00
Nutomic
ad7e6d99ed
Add email translations ( #2175 )
2022-03-29 18:23:03 +00:00
Dessalines
d5a213760d
Version 0.16.2
2022-03-29 12:56:21 -04:00
Dessalines
f7fa1f10f9
Updating translations.
2022-03-29 12:07:39 -04:00
Dessalines
7bb8069224
Version 0.16.2-rc.3
2022-03-29 11:54:13 -04:00
Nutomic
610120067c
Add test files for Friendica federation ( fixes #2144 ) ( #2167 )
2022-03-29 15:48:29 +00:00
Dessalines
e16821116e
Lowering search rate limit. Fixes #2153 ( #2154 )
...
* Lowering search rate limit. Fixes #2153
* Adding a search rate limit.
* Forgot to add the websocket search rate limit
* Fix wrong op
2022-03-29 15:46:03 +00:00
Dessalines
d49565e030
Rate limit ws joins ( #2171 )
...
* Removing async on mutex lock fn.
* Removing redundant ip
* Don't check rate limit twice.
2022-03-28 20:31:35 +00:00
Dessalines
a11b5b107d
Version 0.16.2-rc.2
2022-03-26 21:37:12 -04:00
Dessalines
f2a0841586
Rate limit websocket joins. ( #2165 )
...
* Rate limit websocket joins.
* Removing async on mutex lock fn.
* Removing redundant ip
* Return early if check fails.
2022-03-27 00:29:05 +00:00
Nutomic
a5ff629b24
Dont log errors when rate limit is hit ( fixes #2157 ) ( #2161 )
...
* Dont log errors when rate limit is hit (fixes #2157 )
* Clone service rather than http request
* some cleanup/refactoring
Co-authored-by: Aode (Lion) <asonix@asonix.dog>
2022-03-25 16:41:38 +01:00
Dessalines
c681bb79b1
Version 0.16.2-rc.1
2022-03-24 18:25:21 -04:00
Dessalines
2da0684e95
Removing check_only
2022-03-24 16:29:08 -04:00
Dessalines
ed9f70276d
Fix rate limit check for register. Fixes #2159
2022-03-24 16:13:58 -04:00
Nutomic
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
Dessalines
1e9f609cdb
Consolidate and lower reqwest timeouts. Fixes #2150 ( #2151 )
2022-03-24 16:33:23 +00:00
Nutomic
83e996111e
Check that config is valid before saving ( #2152 )
2022-03-24 16:23:12 +00:00
Nutomic
b406342a14
Dont log error if duplicate activity is received ( fixes #2146 ) ( #2148 )
2022-03-24 16:05:27 +00:00
Nutomic
cb44b14717
WIP: Email localization ( fixes #500 ) ( #2053 )
...
* Allow email localization (fixes #500 )
* add PersonAggregates::default()
* add lemmy-translations submodule
* fix gitmodules
2022-03-24 15:25:51 +00:00
Nutomic
8112816e99
If viewed actor isnt in db, fetch it from other instance ( #2145 )
2022-03-23 21:27:51 +00:00
Dessalines
4e6d901649
Show rate limit algorithm. Fixes #2136
2022-03-22 18:45:14 +00:00
Nutomic
a10bf7d410
Adjust retry interval for sending activities ( #2141 )
2022-03-22 18:40:40 +00:00
Nutomic
bcf7ec6109
Forbid remote URLs for avatars/banners ( fixes #1618 ) ( #2132 )
2022-03-18 15:46:58 +00:00
Nutomic
166ec196b0
Rework error handling ( fixes #1714 ) ( #2135 )
2022-03-16 20:11:49 +00:00
Dessalines
514e2301b5
Version 0.16.1
2022-03-15 17:23:16 -04:00
Dessalines
9fd6a48e3c
Version 0.16.1-rc.1
2022-03-15 16:52:37 -04:00
Nutomic
7d61616dff
Revert "Add logging to debug federation issues (ref #2096 ) ( #2099 )" ( #2130 )
...
This reverts commit e094989a4c
.
2022-03-14 20:18:19 +00:00
Nutomic
550a93aed9
Dont allow admin to add mod to remote community ( #2129 )
2022-03-14 18:35:57 +00:00
Nutomic
f8fb3b41f0
Reject federated downvotes if downvotes are disabled ( fixes #2124 ) ( #2128 )
2022-03-14 18:20:18 +00:00
Dessalines
05f20da51f
Version 0.16.0
2022-03-08 13:45:01 -05:00
Dessalines
82dec1911f
Version 0.16.0-rc.4
2022-03-08 08:57:57 -05:00
Nutomic
660efd1549
Correctly read local SiteView ( #2122 )
2022-03-08 12:52:33 +00:00
Dessalines
15ff832c4a
Version 0.16.0-rc.3
2022-03-07 18:59:29 -05:00
Nutomic
3c5275638f
Increase default worker count ( #2120 )
2022-03-07 22:28:50 +00:00
Dessalines
ffd2ba5d90
Fix community rss. Fixes #2116 ( #2119 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2022-03-07 21:49:02 +00:00
Nutomic
fbadb2d7bd
Try to fix federation test on ci ( #2121 )
2022-03-07 21:25:34 +00:00
Dessalines
aef2abb962
Version 0.16.0-rc.2
2022-03-03 14:40:09 -05:00
Nutomic
df757f28b4
Make delete activities backwards compatible with 0.15 ( #2114 )
2022-03-03 19:37:12 +00:00
Nutomic
ef1e164cc5
Make activity queue worker count configurable, log stats ( #2113 )
2022-03-03 18:54:33 +00:00
Nutomic
fa29ffade1
Add timeout for sending activities ( #2112 )
...
* Add timeout for sending activities
* Also set request timeouts in utils/src/request.rs
2022-03-03 13:40:10 -05:00
Dessalines
a5433ebf77
Fixing unit tests.
2022-03-03 12:51:55 -05:00
Rob Ede
e3153df74d
Remove direct actix-http
dependency
2022-03-02 18:11:05 +00:00
Rob Ede
b06f3eb32e
Update actix-*
dependencies to stable v4.
2022-03-02 18:00:52 +00:00
Dessalines
1b5037e92d
Version 0.16.0-rc.1
2022-03-02 12:41:11 -05:00
dayinjing
bc3927a9bd
Show nsfw communities if you are logged in and searching communities ( #2105 )
...
* Show nsfw communities in logged in and you've enabled nsfw in your profile atleast
* Reuse existing user check
Co-authored-by: Sun Wukong <monkey@king.com>
2022-03-02 17:39:27 +00:00
Nutomic
63565712ad
Fix resending activities ( fixes #1282 ) ( #2109 )
2022-03-01 13:40:05 -05:00
Nutomic
fb4c47d602
Dont hardcode site id in Site::update ( #2110 )
2022-03-01 17:01:23 +00:00
RedLobster999
348077c3de
send plain-text in email along with html ( #2107 )
...
* send plain text in email along with html
* format the code using "cargo +nightly fmt"
Co-authored-by: kittiphat-kang <kittiphat.nu@easysunday.com>
2022-03-01 14:28:18 +00:00
Nutomic
9f5183fe98
Add site option for default theme ( #2104 )
2022-02-23 11:40:36 -05:00
dayinjing
7f9b55e793
Hide community v2 ( #2055 )
...
* Initial working of hiding communities and adding a db entry for mod log
* Return mod log for hidden communities
* Clean up hidding communities PR
* use lower case like other migration files
* Formatting fix
* pass in admin id to list, make match logic the same in post_view as community_view. Dont force non null for reason
* Clean PR review stuff
* Change person_id to mod_person_id on hide community table
* Make bools optional, add a space for formating
Co-authored-by: Thor Odinson <odinson@asgard.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-02-18 02:30:47 +00:00
Nutomic
762b85b27e
Reorganize federation tests ( #2092 )
...
* Reorganize apub protocol tests
* Reorder apub protocol struct members to clarify mandatory/optional fields
2022-02-17 22:04:01 +00:00
Nutomic
e094989a4c
Add logging to debug federation issues (ref #2096 ) ( #2099 )
2022-02-17 18:48:45 +00:00
Nutomic
5a8c894359
Upgrade to Rust 2021 edition ( #2093 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-02-14 15:34:54 +00:00
Nutomic
788924d7ff
Merge different delete activities for better compatibility ( fixes #2066 ) ( #2073 )
2022-02-14 10:14:24 -05:00
Nutomic
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
Nutomic
f1aef63149
Use doku(skip) for opentelemetry_url config value (ref #2085 ) ( #2091 )
2022-02-07 10:39:37 -05:00
Aode (Lion)
1546e5fd0d
Merge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/document-opentelemetry-url
2022-02-04 20:37:38 -06:00
Dessalines
609d2b99f7
Fix site metadata test.
2022-02-04 18:22:43 -05:00
Aode (lion)
6058b11f6e
Add comment about opentelemetry_url
2022-02-03 17:24:19 -06:00
Dessalines
6b1894faf0
Alpha-ordering community follows. Fixes #2062 ( #2079 )
2022-02-01 20:00:54 +00:00
Nutomic
545fe8d0dd
Add federation tests for Friendica, improve parsing of source field ( fixes #2057 ) ( #2070 )
2022-01-28 16:47:34 -05:00
Nutomic
4a23ee4d8b
Dont make webfinger request when viewing community/user profile ( fixes #1896 ) ( #2049 )
2022-01-27 16:39:22 +00:00
Dessalines
d83a53e905
Fixing private instance check. Fixes #2064 ( #2065 )
2022-01-27 16:25:22 +00:00
Kradyz
1c5c02e1bf
Case-insensitive username at login ( #2010 )
...
* Case-insensitive username at login
* formatting
Co-authored-by: Kradyz <k@radiz.nl>
2022-01-26 18:05:07 +00:00
Dessalines
e36ad9d984
Removing the site creator, adding leave_admin. Fixes #1808 ( #2052 )
...
* Removing the site creator, adding leave_admin. Fixes #1808
* Making sure there's at least one admin. Fixing unit tests
2022-01-26 17:57:16 +00:00
Dessalines
1372827b41
Adding starttls support. Fixes #1997 ( #2051 )
...
* Adding starttls support. Fixes #1997
* Change name to tls_type, make a string
2022-01-26 16:42:43 +00:00
Nutomic
2544341e47
Put community last in webfinger response ( fixes #2037 ) ( #2047 )
2022-01-21 21:00:17 +00:00
Nutomic
16f98261f8
Dont check for ban in MarkCommentAsRead ( fixes #2045 ) ( #2054 )
2022-01-21 14:46:43 -05:00
Dessalines
16271b0a4c
Empty post bodies ( #2050 )
...
* Cleaning optional post bodies. Fixes #2039
* Only trim once.
* Using .map() instead.
* Revert "Using .map() instead."
This reverts commit a2f4907209
.
2022-01-21 13:38:01 +00:00
Nutomic
f23fed70bc
Add tombstone tests, better test errors ( #2046 )
2022-01-20 14:13:29 +00:00
vpzomtrrfrt
272dc3e7a6
Accept single object as to for arrays too ( #2048 )
2022-01-20 14:12:45 +00:00
Dessalines
19ccaf767c
Cleaning optional post bodies. Fixes #2039 ( #2043 )
...
* Cleaning optional post bodies. Fixes #2039
* Only trim once.
* Using .map() instead.
2022-01-20 14:04:54 +00:00
Dessalines
a212f6b780
Fixing liking comment on blocked person. Fixes #2033 ( #2042 )
2022-01-19 14:17:18 +00:00
Nutomic
eea3308906
Add tests for lotide federation, make lotide groups fetchable ( #2035 )
...
* Add tests for lotide federation, make lotide groups fetchable
* Accept posts using Note type (and better error messages for tests)
2022-01-17 09:40:47 -05:00
Riley
bc8ed1e6da
Remove unneeded dependency on activitystreams ( #2034 )
2022-01-13 00:17:00 +00:00
Dessalines
f53902ecff
Version 0.15.1
2022-01-12 09:45:29 -05:00
Dessalines
bccb4f068d
Version 0.15.0
2022-01-12 08:46:35 -05:00
Dessalines
a24676e629
Version 0.15.0-rc.7
2022-01-09 11:09:03 -05: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
Riley
41b90bb162
Add console-subscriber ( #2003 )
...
* Add console-subscriber
* Add larg event buffer capacity
* Add console port to lemmy prod container
* Expose pict-rs console port
* Update pictrs
2022-01-07 09:53:45 -05:00
Riley
3032a2745b
Opentelemetry ( #1992 )
...
* Add otlp export
* Add jaeger to dev docker
* More instrument
* Update deps
* Merge from main.
* Add comment about viewing traces
* Fixing reqwest-tracing dep.
* Update pre-commit regex
* Move imports to top
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-01-06 19:10:20 +00:00
Rens Groothuijsen
661f97a073
Use correct encoding when fetching non-UTF-8 site metadata ( #2015 )
...
* Use correct encoding when fetching non-UTF-8 site metadata
* Style fixes
2022-01-06 13:13:17 +00:00
Dessalines
bd31475dba
Adding a banned endpoint for admins. Removing it from GetSite. Fixes #1806
2022-01-04 09:50:30 -05:00
Rob Ede
1943bcd7f5
Prevent panic on InboxRequestGuard
2021-12-30 18:41:35 +00:00
Rob Ede
f6c13cf313
Updated actix-web dependency to 4.0.0-beta.18
2021-12-30 18:37:59 +00:00
Dessalines
3065154f4e
Merge pull request #2007 from LemmyNet/another_tokenizer_fix
...
Trying another tokenizer fix. #1964
2021-12-21 17:24:44 -05:00
Kradyz
9f64872d5a
Case-insensitive webfinger response. Fixes #1955 & #1986 ( #2005 )
...
* Make webfinger case insensitive
* Make webfinger case insensitive
* Case insensitive domain name
* Case-insensitive webfinger
* formatting
Co-authored-by: Kradyz <k@radiz.nl>
2021-12-20 17:23:06 -05:00
Dessalines
ad4715c2a3
Trying another tokenizer fix. #1964
2021-12-20 16:57:36 -05:00
Dessalines
c883a49a40
First pass at invite-only migration. ( #1949 )
...
* First pass at invite-only migration.
* Implement email verification (fixes #219 )
* remove unwrap
* Adding views and functionality to registration application. #209
* Add private instance site column, and back end checks.
* Adding some message fields to LoginResponse
* Adding private instance to site setup.
* A few additions:
- Add a DeleteAccount response.
- RegistrationApplicationView now has the safe LocalUserSettings.
- Adding VerifyEmail to websocket API, added a proper response type.
* Adding and reorganizing some email helpers.
* A few fixes for private sites:
- Added a check_registration_application function.
- Only send a verification email if its been changed.
- VerifyEmail now returns LoginResponse.
- Deleting the old tokens after a successful email verify.
- If port is missing on email config, display a better error message.
* Version 0.15.0-rc.3
* Adding published to email_verification table.
* Adding fixes from comments.
* Version 0.15.0-rc.4
* Adding modlog private site check.
* Version 0.15.0-rc.6
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-12-15 14:49:59 -05:00
Dessalines
1410c5659c
Upgrading deps ( #1995 )
2021-12-14 13:30:37 +00:00
Dessalines
4a46dc805f
Trying out an upgraded version of html5ever. #1964 ( #1991 )
...
* Trying out an upgraded version of html5ever. #1964
* New release of webpage.
2021-12-12 23:49:25 +00:00
Dessalines
161d41999d
Adding min setup password length to the docs. Fixes #1989 ( #1990 )
2021-12-12 16:42:24 +00:00
Nutomic
c6ac606f60
Test pleroma follow ( #1988 )
...
* Add test case for Pleroma follow activity (ref #1984 )
* Use WithContext in apub tests where possible
2021-12-11 21:39:18 -05:00
Riley
0ed3856ef1
Remove awc ( #1979 )
...
* Remove unused awc dep
* Replace awc pict-rs client with reqwest
* Reinstate 30 second pict-rs timeout
2021-12-08 10:56:43 -05:00
Aode (lion)
5b3d707d8f
Use from_message for static error string
2021-12-07 17:17:19 -06:00
Aode (lion)
97ebf2f6f3
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-06 16:54:34 -06:00
Riley
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
Dessalines
4e9ecb2632
Allow comment replies from blocked users. Fixes #1793 ( #1969 )
...
* Allow comment replies from blocked users. Fixes #1793
* Clearer check block.
2021-12-05 17:45:40 +00:00
Dessalines
040770d7ba
Fix retry infinite loops. Fixes #1964 ( #1967 )
...
* Fix retry infinite loops. Fixes #1964
* Moving retry_limit to settings
2021-12-05 10:03:13 -05:00
Colin Reeder
e2baed9a6d
Add lotide activities to tests
2021-12-02 22:44:52 -07:00
Colin Reeder
a91c0c8feb
Allow single item for to, cc, and @context
2021-11-26 21:55:33 -07:00
Dessalines
ad76c75821
Trying to add docker:latest. Fixes #1959 ( #1960 )
...
* Trying to add docker:latest. Fixes #1959
* Version 0.14.4-rc.3
* Trying to fix clippy on crate build
* Version 0.14.4-rc.4
2021-11-26 12:38:55 +00:00
Dessalines
be65b6869f
Merge pull request #1937 from LemmyNet/disable-edit-email-notifications
...
Dont send email notifications for edited comments (fixes #1925 )
2021-11-25 13:00:26 -05:00
Dessalines
e765b42d46
Adding a captcha rate limit. Fixes #1755 ( #1941 )
...
* Adding a captcha rate limit. Fixes #1755
* Changing to post rate limit.
2021-11-25 13:04:19 +00:00
Felix Ableitner
27a687bcd0
Dont send email notifications for edited comments ( fixes #1925 )
2021-11-24 22:29:29 +01:00
Dessalines
97b8b9c255
Version 0.14.3
2021-11-23 14:39:55 -05:00
Dessalines
7f01d8cde6
Version 0.14.2
2021-11-23 11:48:49 -05:00
Dessalines
b1f7bad0a3
Version 0.14.2-rc.1
2021-11-23 11:12:46 -05:00
Dessalines
46c7429429
Fixing duped report view for admins. Fixes #1933 ( #1945 )
...
* Fixing duped report view for admins. Fixes #1933
* Fixing tests.
2021-11-23 15:54:30 +00:00
Dessalines
d2e28e5f38
Adding a GetComment endpoint. Fixes #1919 ( #1944 )
2021-11-23 15:53:48 +00:00
Dessalines
451818749b
Fix min title char count for post titles. Fixes #1854 ( #1940 )
...
* Fix min title char count for post titles. Fixes #1854
* Adding more newline checks for actors.
* Adding helper function
2021-11-23 15:52:58 +00:00
Dessalines
86b2901e8c
Adding MarkPostAsRead to API. Fixes #1784 ( #1946 )
...
* Adding MarkPostAsRead to API. Fixes #1784
* Adding error
2021-11-23 14:15:43 +00:00
Riley
1579ee566f
background-jobs 0.11 ( #1943 )
2021-11-23 12:20:01 +00:00
Riley
3fea5645f8
Add tracing ( #1942 )
2021-11-23 12:16:47 +00:00
Dessalines
88c7b95d03
Remove pointless community follower sort. ( #1939 )
2021-11-23 12:05:09 +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
Felix Ableitner
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
Dessalines
05d43150bc
Making public key required. Fixes #1934
2021-11-22 10:10:18 -05:00
Dessalines
209829e1f3
Merge pull request #1926 from LemmyNet/replace-activitystreams-lib
...
Replace activitystreams crate with activitystreams-kinds
2021-11-22 08:47:46 -05:00
Felix Ableitner
afccd5cf69
Replace activitystreams crate with activitystreams-kinds
2021-11-22 14:28:57 +01:00
Nutomic
88e81dce6b
Merge pull request #1921 from LemmyNet/fix_login
...
Fix login ilike bug. Fixes #1920
2021-11-22 13:05:57 +00:00
Alexander Batischev
d53d229c49
Change NodeInfo links
to an array
...
NodeInfo spec[1] says that _.well-known/nodeinfo_ is a JSON Resource
Descriptor (JRD) document. That is specified in RFC 7033, where §4.4[2]
mandates that `links` is an array.
1. https://nodeinfo.diaspora.software/protocol.html
2. https://datatracker.ietf.org/doc/html/rfc7033#section-4.4
2021-11-21 20:10:39 +03:00
Dessalines
e58c2048ed
Fixing fuzzy_search to escape like chars.
2021-11-19 15:07:20 -05:00
Felix Ableitner
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
4ce01f8bb4
Fix login ilike bug. Fixes #1920
2021-11-18 20:58:11 -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
Dessalines
e756e85da7
Merge pull request #1917 from LemmyNet/outbox-announce
...
Community outbox should only contain activities sent by community
2021-11-18 14:31:47 -05:00
Felix Ableitner
da89ea22fb
Fix Smithereen webfinger, remove duplicate webfinger impl ( fixes #1916 )
2021-11-18 19:28:53 +01:00
Felix Ableitner
aeb34199f5
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-18 18:41:43 +01:00
Felix Ableitner
a2707e1c56
Community outbox should only contain activities sent by community ( fixes #1916 )
2021-11-18 18:31:50 +01:00
Dessalines
1f03a2d957
Merge pull request #1915 from LemmyNet/remove-http-sig-compat
...
Remove HTTP signature compatibility mode (its not necessary)
2021-11-18 11:43:32 -05:00
Dessalines
a56853be05
Merge pull request #1907 from not-layla/main
...
Implement rate limits on comments
2021-11-18 11:22:38 -05:00
Felix Ableitner
f07aaf417a
Remove HTTP signature compatibility mode (its not necessary)
2021-11-18 17:06:10 +01:00
layla
7fe7062c47
Implement rate limits on comments
2021-11-18 13:40:16 +00:00
Dessalines
f4616789a7
Version 0.14.1
2021-11-17 16:25:50 -05:00
Dessalines
c29366328e
Version 0.14.0
2021-11-17 11:28:16 -05:00
Dessalines
dc3858c82d
Version 0.14.0-rc.2
2021-11-17 09:14:54 -05:00
Dessalines
5f6419ff76
Merge pull request #1897 from LemmyNet/mastodon-compat
...
Mastodon compat
2021-11-17 09:12:01 -05:00
Felix Ableitner
db631005d3
Fix error due to same activity being inserted in database twice
2021-11-16 19:13:05 +01:00
Felix Ableitner
3249060f67
Remove to field from follow activities
2021-11-16 19:13:05 +01:00
Aode (lion)
20cddf5e81
Support mastodon deletes
2021-11-16 18:07:47 +01:00
Felix Ableitner
7f4a773b88
Create and Note always need to tag parent creator, for mastodon notifications
2021-11-16 18:07:47 +01:00
Felix Ableitner
c1f1b8aa0f
Activities in community should also be sent to actors in cc
2021-11-16 18:07:45 +01:00
Felix Ableitner
dc416bf255
Make http signature compatible with mastodon
2021-11-16 18:06:01 +01:00
Nutomic
60f72b2785
Merge pull request #1905 from LemmyNet/fix_comment_report_creator
...
Fixing comment report creator. Fixes #1904
2021-11-16 17:03:58 +00:00
Felix Ableitner
579ca37ddf
Make webfinger standard compliant
2021-11-16 18:03:09 +01:00
Dessalines
ec40b4f7fb
Fixing comment report creator. Fixes #1904
2021-11-16 09:59:52 -05:00
Dessalines
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
Dessalines
497564359b
Version 0.14.0-rc.1
2021-11-11 14:57:25 -05:00
Nutomic
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
Dessalines
8a108bccae
Merge pull request #1891 from LemmyNet/remove-apub-accept-guard
...
Remove header guard for activitypub routes
2021-11-10 09:38:50 -05:00
Felix Ableitner
9a1fe154db
Remove header guard for activitypub routes
2021-11-10 15:08:33 +01:00
Dessalines
f035af3738
Fixing clippy
2021-11-09 17:31:28 -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
Felix Ableitner
5319046dc7
Add federation test cases for Smithereen and Mastodon
2021-11-09 17:16:58 +01:00
Felix Ableitner
c21c142a9a
Include apub context from file, so that it can be embedded in docs
2021-11-08 16:04:02 +01:00
Felix Ableitner
252d87d332
Fix clippy error
2021-11-08 13:16:14 +01:00
Felix Ableitner
888e683856
For verify_is_public() we also need to check cc field
2021-11-06 18:44:34 +01:00
Felix Ableitner
a5a674a270
Add method ApubObject.verify()
2021-11-06 18:35:14 +01:00
Felix Ableitner
02ce7bdc7d
Remove unused ActorType methods
2021-11-06 15:01:00 +01:00
Felix Ableitner
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
Felix Ableitner
c725514841
Change to_apub and from_apub to take by value and avoid cloning
2021-11-06 14:47:58 +01:00
Felix Ableitner
2edf8ba157
Move ObjectId to library
2021-11-05 21:37:46 +01:00
Felix Ableitner
bd3352423a
Remove ActivityFields trait, deserialize into another struct instead
2021-11-05 21:14:19 +01:00
Felix Ableitner
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
Felix Ableitner
41f7bcc0d2
Correctly use and document check_is_apub_id_valid() param use_strict_allowlist
2021-11-02 21:39:06 +01:00
Felix Ableitner
b396344eae
Merge two functions into one
2021-11-02 21:39:06 +01:00
Felix Ableitner
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