lemmy.git
2 years agoFixing release script. (#2170)
Dessalines [Tue, 29 Mar 2022 15:23:39 +0000 (15:23 +0000)]
Fixing release script. (#2170)

2 years agoRate limit ws joins (#2171)
Dessalines [Mon, 28 Mar 2022 20:31:35 +0000 (20:31 +0000)]
Rate limit ws joins (#2171)

* Removing async on mutex lock fn.

* Removing redundant ip

* Don't check rate limit twice.

2 years agoDelete unused diesel.toml file (#2166)
Nutomic [Mon, 28 Mar 2022 18:29:11 +0000 (18:29 +0000)]
Delete unused diesel.toml file (#2166)

2 years agoVersion 0.16.2-rc.2
Dessalines [Sun, 27 Mar 2022 01:37:12 +0000 (21:37 -0400)]
Version 0.16.2-rc.2

2 years agoRate limit websocket joins. (#2165)
Dessalines [Sun, 27 Mar 2022 00:29:05 +0000 (00:29 +0000)]
Rate limit websocket joins. (#2165)

* Rate limit websocket joins.

* Removing async on mutex lock fn.

* Removing redundant ip

* Return early if check fails.

2 years agoDoing tests in sequential order. Fixes #2158 (#2163)
Dessalines [Fri, 25 Mar 2022 19:00:33 +0000 (19:00 +0000)]
Doing tests in sequential order. Fixes #2158 (#2163)

* Doing tests in sequential order. Fixes #2158

* Doing tests in sequential order. Fixes #2158

* Fixing order 1

2 years agoDont log errors when rate limit is hit (fixes #2157) (#2161)
Nutomic [Fri, 25 Mar 2022 15:41:38 +0000 (16:41 +0100)]
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>
2 years agoVersion 0.16.2-rc.1
Dessalines [Thu, 24 Mar 2022 22:25:21 +0000 (18:25 -0400)]
Version 0.16.2-rc.1

2 years agoMerge pull request #2160 from LemmyNet/rate_limit_websocket_fail
Nutomic [Thu, 24 Mar 2022 20:43:02 +0000 (21:43 +0100)]
Merge pull request #2160 from LemmyNet/rate_limit_websocket_fail

Fix rate limit check for register. Fixes #2159

2 years agoRemoving check_only
Dessalines [Thu, 24 Mar 2022 20:29:08 +0000 (16:29 -0400)]
Removing check_only

2 years agoFix rate limit check for register. Fixes #2159
Dessalines [Thu, 24 Mar 2022 20:13:58 +0000 (16:13 -0400)]
Fix rate limit check for register. Fixes #2159

2 years agoGNU social compatibility (#2100)
Nutomic [Thu, 24 Mar 2022 16:33:42 +0000 (16:33 +0000)]
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"

2 years agoConsolidate and lower reqwest timeouts. Fixes #2150 (#2151)
Dessalines [Thu, 24 Mar 2022 16:33:23 +0000 (16:33 +0000)]
Consolidate and lower reqwest timeouts. Fixes #2150 (#2151)

2 years agoCheck that config is valid before saving (#2152)
Nutomic [Thu, 24 Mar 2022 16:23:12 +0000 (16:23 +0000)]
Check that config is valid before saving (#2152)

2 years agoDont log error if duplicate activity is received (fixes #2146) (#2148)
Nutomic [Thu, 24 Mar 2022 16:05:27 +0000 (16:05 +0000)]
Dont log error if duplicate activity is received (fixes #2146) (#2148)

2 years agoWIP: Email localization (fixes #500) (#2053)
Nutomic [Thu, 24 Mar 2022 15:25:51 +0000 (15:25 +0000)]
WIP: Email localization (fixes #500) (#2053)

* Allow email localization (fixes #500)

* add PersonAggregates::default()

* add lemmy-translations submodule

* fix gitmodules

2 years agoUpdate pictrs to 0.3.0-rc.7 (#2149)
Nutomic [Thu, 24 Mar 2022 01:57:40 +0000 (01:57 +0000)]
Update pictrs to 0.3.0-rc.7 (#2149)

2 years agoMerge pull request #2139 from LemmyNet/add_jerboa_link
Nutomic [Wed, 23 Mar 2022 21:48:25 +0000 (21:48 +0000)]
Merge pull request #2139 from LemmyNet/add_jerboa_link

Add jerboa link to readme. Fixes #2137

2 years agoMerge branch 'main' into add_jerboa_link
Nutomic [Wed, 23 Mar 2022 21:33:07 +0000 (21:33 +0000)]
Merge branch 'main' into add_jerboa_link

2 years agoIf viewed actor isnt in db, fetch it from other instance (#2145)
Nutomic [Wed, 23 Mar 2022 21:27:51 +0000 (21:27 +0000)]
If viewed actor isnt in db, fetch it from other instance (#2145)

2 years agoMerge pull request #2138 from LemmyNet/rate_limit_algorithm_desc
Nutomic [Wed, 23 Mar 2022 14:48:09 +0000 (14:48 +0000)]
Merge pull request #2138 from LemmyNet/rate_limit_algorithm_desc

Show rate limit algorithm. Fixes #2136

2 years agoMerge branch 'main' into rate_limit_algorithm_desc
Nutomic [Wed, 23 Mar 2022 14:33:03 +0000 (14:33 +0000)]
Merge branch 'main' into rate_limit_algorithm_desc

2 years agoMerge branch 'main' into add_jerboa_link
Nutomic [Wed, 23 Mar 2022 14:30:06 +0000 (14:30 +0000)]
Merge branch 'main' into add_jerboa_link

2 years agoMerge pull request #2147 from LemmyNet/fixing_api_tests_1
Nutomic [Wed, 23 Mar 2022 14:29:46 +0000 (14:29 +0000)]
Merge pull request #2147 from LemmyNet/fixing_api_tests_1

Fixing api tests 1

2 years agoTrying to fix api tests 2
Dessalines [Tue, 22 Mar 2022 22:06:59 +0000 (18:06 -0400)]
Trying to fix api tests 2

2 years agoTrying to fix api tests 1
Dessalines [Tue, 22 Mar 2022 19:50:47 +0000 (15:50 -0400)]
Trying to fix api tests 1

2 years agoShow rate limit algorithm. Fixes #2136
Dessalines [Fri, 18 Mar 2022 15:26:16 +0000 (11:26 -0400)]
Show rate limit algorithm. Fixes #2136

2 years agoAdjust retry interval for sending activities (#2141)
Nutomic [Tue, 22 Mar 2022 18:40:40 +0000 (18:40 +0000)]
Adjust retry interval for sending activities (#2141)

2 years agoAdd jerboa link to readme. Fixes #2137
Dessalines [Fri, 18 Mar 2022 15:29:36 +0000 (11:29 -0400)]
Add jerboa link to readme. Fixes #2137

2 years agoRestore prod docker-compose.yml
Dessalines [Sat, 19 Mar 2022 16:21:07 +0000 (12:21 -0400)]
Restore prod docker-compose.yml

2 years agoForbid remote URLs for avatars/banners (fixes #1618) (#2132)
Nutomic [Fri, 18 Mar 2022 15:46:58 +0000 (15:46 +0000)]
Forbid remote URLs for avatars/banners (fixes #1618) (#2132)

2 years agoRemove docker/prod unused files (fixes #2086) (#2133)
Nutomic [Thu, 17 Mar 2022 16:28:35 +0000 (16:28 +0000)]
Remove docker/prod unused files (fixes #2086) (#2133)

2 years agoRework error handling (fixes #1714) (#2135)
Nutomic [Wed, 16 Mar 2022 20:11:49 +0000 (20:11 +0000)]
Rework error handling (fixes #1714) (#2135)

2 years agoAdding release notes.
Dessalines [Tue, 15 Mar 2022 21:29:05 +0000 (17:29 -0400)]
Adding release notes.

2 years agoVersion 0.16.1
Dessalines [Tue, 15 Mar 2022 21:23:16 +0000 (17:23 -0400)]
Version 0.16.1

2 years agoVersion 0.16.1-rc.1
Dessalines [Tue, 15 Mar 2022 20:52:37 +0000 (16:52 -0400)]
Version 0.16.1-rc.1

2 years agoRevert "Add logging to debug federation issues (ref #2096) (#2099)" (#2130)
Nutomic [Mon, 14 Mar 2022 20:18:19 +0000 (20:18 +0000)]
Revert "Add logging to debug federation issues (ref #2096) (#2099)" (#2130)

This reverts commit e094989a4c6baaa637a0ab1c63179706c5a3bc6c.

2 years agoDont allow admin to add mod to remote community (#2129)
Nutomic [Mon, 14 Mar 2022 18:35:57 +0000 (18:35 +0000)]
Dont allow admin to add mod to remote community (#2129)

2 years agoReject federated downvotes if downvotes are disabled (fixes #2124) (#2128)
Nutomic [Mon, 14 Mar 2022 18:20:18 +0000 (18:20 +0000)]
Reject federated downvotes if downvotes are disabled (fixes #2124) (#2128)

2 years agoAdd Release notes.
Dessalines [Tue, 8 Mar 2022 18:54:25 +0000 (13:54 -0500)]
Add Release notes.

2 years agoVersion 0.16.0
Dessalines [Tue, 8 Mar 2022 18:45:01 +0000 (13:45 -0500)]
Version 0.16.0

2 years agoVersion 0.16.0-rc.4
Dessalines [Tue, 8 Mar 2022 13:57:57 +0000 (08:57 -0500)]
Version 0.16.0-rc.4

2 years agoCorrectly read local SiteView (#2122)
Nutomic [Tue, 8 Mar 2022 12:52:33 +0000 (12:52 +0000)]
Correctly read local SiteView (#2122)

2 years agoVersion 0.16.0-rc.3
Dessalines [Mon, 7 Mar 2022 23:59:29 +0000 (18:59 -0500)]
Version 0.16.0-rc.3

2 years agoIncrease default worker count (#2120)
Nutomic [Mon, 7 Mar 2022 22:28:50 +0000 (22:28 +0000)]
Increase default worker count (#2120)

2 years agoFix community rss. Fixes #2116 (#2119)
Dessalines [Mon, 7 Mar 2022 21:49:02 +0000 (21:49 +0000)]
Fix community rss. Fixes #2116 (#2119)

Co-authored-by: Nutomic <me@nutomic.com>
2 years agoTry to fix federation test on ci (#2121)
Nutomic [Mon, 7 Mar 2022 21:25:34 +0000 (21:25 +0000)]
Try to fix federation test on ci (#2121)

2 years agoVersion 0.16.0-rc.2
Dessalines [Thu, 3 Mar 2022 19:40:09 +0000 (14:40 -0500)]
Version 0.16.0-rc.2

2 years agoMake delete activities backwards compatible with 0.15 (#2114)
Nutomic [Thu, 3 Mar 2022 19:37:12 +0000 (19:37 +0000)]
Make delete activities backwards compatible with 0.15 (#2114)

2 years agoMake activity queue worker count configurable, log stats (#2113)
Nutomic [Thu, 3 Mar 2022 18:54:33 +0000 (18:54 +0000)]
Make activity queue worker count configurable, log stats (#2113)

2 years agoAdd timeout for sending activities (#2112)
Nutomic [Thu, 3 Mar 2022 18:40:10 +0000 (18:40 +0000)]
Add timeout for sending activities (#2112)

* Add timeout for sending activities

* Also set request timeouts in utils/src/request.rs

2 years agoMerge pull request #2115 from LemmyNet/fix_tests_1
Nutomic [Thu, 3 Mar 2022 18:13:09 +0000 (18:13 +0000)]
Merge pull request #2115 from LemmyNet/fix_tests_1

Fixing unit tests.

2 years agoFixing unit tests.
Dessalines [Thu, 3 Mar 2022 17:51:55 +0000 (12:51 -0500)]
Fixing unit tests.

2 years agoMerge pull request #2111 from robjtede/aw4
Nutomic [Wed, 2 Mar 2022 20:59:51 +0000 (20:59 +0000)]
Merge pull request #2111 from robjtede/aw4

Update `actix-*` dependencies to stable v4.

2 years agoRemove direct `actix-http` dependency
Rob Ede [Wed, 2 Mar 2022 18:05:48 +0000 (18:05 +0000)]
Remove direct `actix-http` dependency

2 years agoUpdate `actix-*` dependencies to stable v4.
Rob Ede [Wed, 2 Mar 2022 18:00:52 +0000 (18:00 +0000)]
Update `actix-*` dependencies to stable v4.

2 years agoVersion 0.16.0-rc.1
Dessalines [Wed, 2 Mar 2022 17:41:11 +0000 (12:41 -0500)]
Version 0.16.0-rc.1

2 years agoShow nsfw communities if you are logged in and searching communities (#2105)
dayinjing [Wed, 2 Mar 2022 17:39:27 +0000 (11:39 -0600)]
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>
2 years agoFix resending activities (fixes #1282) (#2109)
Nutomic [Tue, 1 Mar 2022 18:40:05 +0000 (18:40 +0000)]
Fix resending activities (fixes #1282) (#2109)

2 years agoDont hardcode site id in Site::update (#2110)
Nutomic [Tue, 1 Mar 2022 17:01:23 +0000 (17:01 +0000)]
Dont hardcode site id in Site::update (#2110)

2 years agosend plain-text in email along with html (#2107)
RedLobster999 [Tue, 1 Mar 2022 14:28:18 +0000 (21:28 +0700)]
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>
2 years agoAdd site option for default theme (#2104)
Nutomic [Wed, 23 Feb 2022 16:40:36 +0000 (16:40 +0000)]
Add site option for default theme (#2104)

2 years agoHide community v2 (#2055)
dayinjing [Fri, 18 Feb 2022 02:30:47 +0000 (20:30 -0600)]
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>
2 years agoReorganize federation tests (#2092)
Nutomic [Thu, 17 Feb 2022 22:04:01 +0000 (22:04 +0000)]
Reorganize federation tests (#2092)

* Reorganize apub protocol tests

* Reorder apub protocol struct members to clarify mandatory/optional fields

2 years agoAdd logging to debug federation issues (ref #2096) (#2099)
Nutomic [Thu, 17 Feb 2022 18:48:45 +0000 (18:48 +0000)]
Add logging to debug federation issues (ref #2096) (#2099)

2 years agoAdding a reqwest timeout. Fixes #2089 (#2097)
Dessalines [Tue, 15 Feb 2022 12:53:57 +0000 (07:53 -0500)]
Adding a reqwest timeout. Fixes #2089 (#2097)

2 years agoUpgrade to Rust 2021 edition (#2093)
Nutomic [Mon, 14 Feb 2022 15:34:54 +0000 (15:34 +0000)]
Upgrade to Rust 2021 edition (#2093)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2 years agoMerge different delete activities for better compatibility (fixes #2066) (#2073)
Nutomic [Mon, 14 Feb 2022 15:14:24 +0000 (15:14 +0000)]
Merge different delete activities for better compatibility (fixes #2066) (#2073)

2 years agoImplement instance actor (#1798)
Nutomic [Mon, 7 Feb 2022 19:23:12 +0000 (19:23 +0000)]
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

2 years agoUse doku(skip) for opentelemetry_url config value (ref #2085) (#2091)
Nutomic [Mon, 7 Feb 2022 15:39:37 +0000 (15:39 +0000)]
Use doku(skip) for opentelemetry_url config value (ref #2085) (#2091)

2 years agoMerge pull request #2085 from LemmyNet/asonix/document-opentelemetry-url
Riley [Sat, 5 Feb 2022 03:46:38 +0000 (21:46 -0600)]
Merge pull request #2085 from LemmyNet/asonix/document-opentelemetry-url

Add comment about opentelemetry_url

2 years agoMerge branch 'main' into asonix/document-opentelemetry-url
Riley [Sat, 5 Feb 2022 03:22:27 +0000 (21:22 -0600)]
Merge branch 'main' into asonix/document-opentelemetry-url

2 years agoMerge pull request #2087 from LemmyNet/asonix/console-feature
Riley [Sat, 5 Feb 2022 03:22:07 +0000 (21:22 -0600)]
Merge pull request #2087 from LemmyNet/asonix/console-feature

Add console feature flag, not default

2 years agoMerge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/console...
Aode (Lion) [Sat, 5 Feb 2022 02:37:57 +0000 (20:37 -0600)]
Merge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/console-feature

2 years agoMerge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/document...
Aode (Lion) [Sat, 5 Feb 2022 02:37:38 +0000 (20:37 -0600)]
Merge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/document-opentelemetry-url

2 years agoFix site metadata test.
Dessalines [Fri, 4 Feb 2022 23:22:43 +0000 (18:22 -0500)]
Fix site metadata test.

2 years agoAdd console feature flag, not default
Aode (lion) [Fri, 4 Feb 2022 17:31:38 +0000 (11:31 -0600)]
Add console feature flag, not default

The most recent tracing-core changed the number of variants on metadata::Kind,
which broke console-api 0.1.1, and no fix has been applied yet. To avoid build
failures, disable console-subscriber for now

2 years agoAdd comment about opentelemetry_url
Aode (lion) [Thu, 3 Feb 2022 22:54:57 +0000 (16:54 -0600)]
Add comment about opentelemetry_url

2 years agoAlpha-ordering community follows. Fixes #2062 (#2079)
Dessalines [Tue, 1 Feb 2022 20:00:54 +0000 (15:00 -0500)]
Alpha-ordering community follows. Fixes #2062 (#2079)

2 years agoAdding a test comment. (#2081)
Dessalines [Tue, 1 Feb 2022 18:19:07 +0000 (13:19 -0500)]
Adding a test comment. (#2081)

2 years agoAdding codeowners. (#2080)
Dessalines [Tue, 1 Feb 2022 16:37:30 +0000 (11:37 -0500)]
Adding codeowners. (#2080)

2 years agoRemove commit hook (#2078)
Nutomic [Tue, 1 Feb 2022 00:20:31 +0000 (00:20 +0000)]
Remove commit hook (#2078)

2 years agoDont update default config in commit hook (#2075)
Nutomic [Sat, 29 Jan 2022 23:50:56 +0000 (23:50 +0000)]
Dont update default config in commit hook (#2075)

2 years agoAdd federation tests for Friendica, improve parsing of source field (fixes #2057...
Nutomic [Fri, 28 Jan 2022 21:47:34 +0000 (21:47 +0000)]
Add federation tests for Friendica, improve parsing of source field (fixes #2057) (#2070)

2 years agoUpdate issue templates (#2069)
Dessalines [Thu, 27 Jan 2022 21:32:12 +0000 (16:32 -0500)]
Update issue templates (#2069)

2 years agoUpdating releases.md
Dessalines [Thu, 27 Jan 2022 19:11:38 +0000 (14:11 -0500)]
Updating releases.md

2 years agoDont make webfinger request when viewing community/user profile (fixes #1896) (#2049)
Nutomic [Thu, 27 Jan 2022 16:39:22 +0000 (16:39 +0000)]
Dont make webfinger request when viewing community/user profile (fixes #1896) (#2049)

2 years agoFixing private instance check. Fixes #2064 (#2065)
Dessalines [Thu, 27 Jan 2022 16:25:22 +0000 (11:25 -0500)]
Fixing private instance check. Fixes #2064 (#2065)

2 years agoCase-insensitive username at login (#2010)
Kradyz [Wed, 26 Jan 2022 18:05:07 +0000 (19:05 +0100)]
Case-insensitive username at login (#2010)

* Case-insensitive username at login

* formatting

Co-authored-by: Kradyz <k@radiz.nl>
2 years agoRemoving the site creator, adding leave_admin. Fixes #1808 (#2052)
Dessalines [Wed, 26 Jan 2022 17:57:16 +0000 (12:57 -0500)]
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

2 years agoAdding starttls support. Fixes #1997 (#2051)
Dessalines [Wed, 26 Jan 2022 16:42:43 +0000 (11:42 -0500)]
Adding starttls support. Fixes #1997 (#2051)

* Adding starttls support. Fixes #1997

* Change name to tls_type, make a string

2 years agoPut community last in webfinger response (fixes #2037) (#2047)
Nutomic [Fri, 21 Jan 2022 21:00:17 +0000 (21:00 +0000)]
Put community last in webfinger response (fixes #2037) (#2047)

2 years agoDont check for ban in MarkCommentAsRead (fixes #2045) (#2054)
Nutomic [Fri, 21 Jan 2022 19:46:43 +0000 (19:46 +0000)]
Dont check for ban in MarkCommentAsRead (fixes #2045) (#2054)

2 years agoEmpty post bodies (#2050)
Dessalines [Fri, 21 Jan 2022 13:38:01 +0000 (08:38 -0500)]
Empty post bodies (#2050)

* Cleaning optional post bodies. Fixes #2039

* Only trim once.

* Using .map() instead.

* Revert "Using .map() instead."

This reverts commit a2f49072095e0c0622c4a7d041dcea81e11fe1dc.

2 years agoAdd tombstone tests, better test errors (#2046)
Nutomic [Thu, 20 Jan 2022 14:13:29 +0000 (14:13 +0000)]
Add tombstone tests, better test errors (#2046)

2 years agoAccept single object as to for arrays too (#2048)
vpzomtrrfrt [Thu, 20 Jan 2022 14:12:45 +0000 (06:12 -0800)]
Accept single object as to for arrays too (#2048)

2 years agoCleaning optional post bodies. Fixes #2039 (#2043)
Dessalines [Thu, 20 Jan 2022 14:04:54 +0000 (09:04 -0500)]
Cleaning optional post bodies. Fixes #2039 (#2043)

* Cleaning optional post bodies. Fixes #2039

* Only trim once.

* Using .map() instead.

2 years agoFixing liking comment on blocked person. Fixes #2033 (#2042)
Dessalines [Wed, 19 Jan 2022 14:17:18 +0000 (09:17 -0500)]
Fixing liking comment on blocked person. Fixes #2033 (#2042)

2 years agoAdd tests for lotide federation, make lotide groups fetchable (#2035)
Nutomic [Mon, 17 Jan 2022 14:40:47 +0000 (14:40 +0000)]
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)

2 years agoRemove unneeded dependency on activitystreams (#2034)
Riley [Thu, 13 Jan 2022 00:17:00 +0000 (18:17 -0600)]
Remove unneeded dependency on activitystreams (#2034)