]> Untitled Git - lemmy.git/log
lemmy.git
21 months agoImproved error message when attempting to fetch non-local object (fixes #2715) (...
Nutomic [Wed, 8 Feb 2023 19:45:29 +0000 (04:45 +0900)]
Improved error message when attempting to fetch non-local object (fixes #2715) (#2717)

21 months agoConvert HTML from titles into markdown (#2709)
Kradyz [Tue, 7 Feb 2023 02:27:17 +0000 (03:27 +0100)]
Convert HTML from titles into markdown (#2709)

Co-authored-by: Kradyz <k@radiz.nl>
21 months agoIn apub post receive, check posting restricted to mods (ref #2702) (#2704)
Nutomic [Sun, 5 Feb 2023 17:31:09 +0000 (02:31 +0900)]
In apub post receive, check posting restricted to mods (ref #2702) (#2704)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoFix docker federation setup (#2706)
Nutomic [Sun, 5 Feb 2023 17:30:10 +0000 (02:30 +0900)]
Fix docker federation setup (#2706)

21 months agoFix data fetching from Peertube (fixes #2689) (#2703)
Nutomic [Sun, 5 Feb 2023 05:38:08 +0000 (14:38 +0900)]
Fix data fetching from Peertube (fixes #2689) (#2703)

- Other platforms can support additional language tags. Treat those
as None instead of throwing error
- deserialize_skip_error was implemented incorrectly and failed on
array values (https://github.com/LemmyNet/activitypub-federation-rust/commit/6d9682f4e6e5d47afaa05f8a35a230bf5e07a334)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoAdd a ntfy notif on a tag deploy success. (#2701)
Dessalines [Sat, 4 Feb 2023 17:51:48 +0000 (12:51 -0500)]
Add a ntfy notif on a tag deploy success. (#2701)

21 months agoAdding 0.17.1 Release notes.
Dessalines [Fri, 3 Feb 2023 19:30:26 +0000 (14:30 -0500)]
Adding 0.17.1 Release notes.

21 months agoDisable pictrs feature in CI to make it faster (#2698)
Nutomic [Fri, 3 Feb 2023 18:32:44 +0000 (03:32 +0900)]
Disable pictrs feature in CI to make it faster (#2698)

21 months agoVersion 0.17.1
Dessalines [Fri, 3 Feb 2023 14:36:18 +0000 (09:36 -0500)]
Version 0.17.1

21 months agoFixing admin application email subject. Fixes #2688 (#2695)
Dessalines [Fri, 3 Feb 2023 14:24:19 +0000 (09:24 -0500)]
Fixing admin application email subject. Fixes #2688 (#2695)

21 months agoFixing person block views. Fixes #2693 (#2694)
Dessalines [Fri, 3 Feb 2023 13:45:32 +0000 (08:45 -0500)]
Fixing person block views. Fixes #2693 (#2694)

21 months agoFixing GetPosts active sort index. Fixes #2683 (#2684)
Dessalines [Thu, 2 Feb 2023 19:09:32 +0000 (14:09 -0500)]
Fixing GetPosts active sort index. Fixes #2683 (#2684)

* Fixing GetPosts active sort index. Fixes #2683

* Fixing other sort.

21 months agoMore explicit upgrade instructions.
Dessalines [Wed, 1 Feb 2023 14:35:24 +0000 (09:35 -0500)]
More explicit upgrade instructions.

21 months agoFix yerbate.ml -> join-lemmy.org links
Dessalines [Wed, 1 Feb 2023 14:34:59 +0000 (09:34 -0500)]
Fix yerbate.ml -> join-lemmy.org links

21 months agoMerge branch 'main' of https://github.com/LemmyNet/lemmy
Dessalines [Tue, 31 Jan 2023 17:21:34 +0000 (12:21 -0500)]
Merge branch 'main' of https://github.com/LemmyNet/lemmy

21 months agoFixing instructions.
Dessalines [Tue, 31 Jan 2023 17:21:28 +0000 (12:21 -0500)]
Fixing instructions.

21 months agoPublish without verify (#2681)
Nutomic [Tue, 31 Jan 2023 15:41:48 +0000 (00:41 +0900)]
Publish without verify (#2681)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoFix paths in release script, update crate versions (#2680)
Nutomic [Tue, 31 Jan 2023 15:26:51 +0000 (00:26 +0900)]
Fix paths in release script, update crate versions (#2680)

21 months agoAdding 0.17.0 Release notes.
Dessalines [Tue, 31 Jan 2023 13:38:41 +0000 (08:38 -0500)]
Adding 0.17.0 Release notes.

21 months agoVersion 0.17.0
Dessalines [Tue, 31 Jan 2023 13:30:54 +0000 (08:30 -0500)]
Version 0.17.0

21 months agoUpdating translations.
Dessalines [Tue, 31 Jan 2023 13:29:31 +0000 (08:29 -0500)]
Updating translations.

21 months agoFixing `.drone.yml` (#2677)
Dessalines [Mon, 30 Jan 2023 19:17:24 +0000 (14:17 -0500)]
Fixing `.drone.yml` (#2677)

* Try to fix docker/drone plugin

* Trying to use one rust image.

* Fixing drone 1.

* Fixing drone 2.

* Add drone notify.

* Fixing drone 3.

* Fixing drone 4.

* Fix clippy.

* Remove uninlined format lint.

* Combine all cargo tasks

* Fixing drone 5.

* Fixing drone 6.

* Fixing drone 7.

* Fixing drone 8.

* Fixing drone 9.

* Fixing drone 10.

* Fixing drone 12.

* Fixing drone 13.

* Fixing drone 14.

* Fixing drone 15.

* Fixing drone 16.

* Fixing drone 17.

* Fixing drone 18.

* Fixing drone 19.

* Fixing drone 20.

* Fixing drone 21.

* Fixing drone 22.

* Fixing drone 23.

* Fixing drone 24.

* Fixing drone 25.

* Fixing drone 26.

* Fixing drone 27.

* Fixing drone 28.

* Fixing drone 29.

* Fixing drone 30.

* Fixing drone 31.

* Fixing drone 32.

* Fixing drone 33.

* Fixing drone 34.

* Fixing drone 35.

* Fixing drone 36.

* Fixing drone 37.

* Fixing drone 38.

* Fixing drone 39.

* Fixing drone 40.

* Fixing drone 41.

* Fixing drone 43.

* Fixing drone 44.

* Fixing drone 45.

* Last cleanup.

* Fixing drone 46.

* Separate ci steps (#2679)

* separate ci steps

* fix 1

* add comments

* dont add rustfmt explicitly

* Revert "dont add rustfmt explicitly"

This reverts commit 358ce3302a134b7ac88d90a854079356995e9725.

* dont use all features for tests

---------

Co-authored-by: Nutomic <me@nutomic.com>
21 months agoUse join_all instead of try_join_all. Fixes #2673 (#2674)
Dessalines [Mon, 30 Jan 2023 16:11:11 +0000 (11:11 -0500)]
Use join_all instead of try_join_all. Fixes #2673 (#2674)

* Use join_all instead of try_join_all. Fixes #2673

* Add note about closed connections.

21 months agoUpdate message_id to comply with RFC 2822 (#2668)
Kradyz [Mon, 30 Jan 2023 16:10:51 +0000 (17:10 +0100)]
Update message_id to comply with RFC 2822 (#2668)

The RFC 2822 format standard requires the message ID to be enclosed within angle brackets. If the standard is not followed, SpamAssassin deducts points from the e-mail.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoSpeeding up comment-ltree migration, fixing index creation. Fixes #2664 (#2670)
Dessalines [Mon, 23 Jan 2023 14:59:25 +0000 (09:59 -0500)]
Speeding up comment-ltree migration, fixing index creation. Fixes #2664 (#2670)

* Speeding up comment-ltree migration, fixing index creation. Fixes #2664

* Adding some logging lines, fixing for missing posts.

* Adding more postgres config

21 months agoAdd feature to embed pictrs in lemmy binary (fixes #2627) (#2633)
Nutomic [Fri, 20 Jan 2023 17:46:49 +0000 (18:46 +0100)]
Add feature to embed pictrs in lemmy binary (fixes #2627) (#2633)

* Add feature to embed pictrs in lemmy binary (fixes #2627)

* Add pictrs config

* add protobuf

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoUpdate post_aggregates indexes to account for featured_local and featured_community...
Dessalines [Fri, 20 Jan 2023 17:44:03 +0000 (12:44 -0500)]
Update post_aggregates indexes to account for featured_local and featured_community columns. (#2661)

- Fixes #2660

21 months agoPost creation from Mastodon (fixes #2590) (#2651)
Nutomic [Fri, 20 Jan 2023 17:43:23 +0000 (18:43 +0100)]
Post creation from Mastodon (fixes #2590) (#2651)

* Post creation from Mastodon (fixes #2590)

* better logic for page title

* add deserialize helper

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoUpgrade to postgres 15. (#2659)
Dessalines [Fri, 20 Jan 2023 17:15:07 +0000 (12:15 -0500)]
Upgrade to postgres 15. (#2659)

21 months agoAdd reddit -> lemmy importer to readme. (#2662)
Dessalines [Fri, 20 Jan 2023 02:41:37 +0000 (21:41 -0500)]
Add reddit -> lemmy importer to readme. (#2662)

22 months agoSome script improvements (#2654)
Nutomic [Thu, 12 Jan 2023 23:23:58 +0000 (00:23 +0100)]
Some script improvements (#2654)

- Allow specifying which packages should be tested
- Hardcode `lemmy` as db password because thats used in many different places

22 months agoUse enum for registration mode setting (#2604)
Nutomic [Thu, 5 Jan 2023 01:42:30 +0000 (01:42 +0000)]
Use enum for registration mode setting (#2604)

* Use enum for registration mode setting

* fix tests

22 months agoRemoving sniptt/monads for lemmy-js-client. (#2644)
Dessalines [Wed, 4 Jan 2023 15:59:26 +0000 (10:59 -0500)]
Removing sniptt/monads for lemmy-js-client. (#2644)

* Removing sniptt/monads for lemmy-js-client.

* Fix tests.

22 months agoFix historical post fetching. Fixes #2640 (#2643)
Dessalines [Wed, 4 Jan 2023 14:58:11 +0000 (09:58 -0500)]
Fix historical post fetching. Fixes #2640 (#2643)

22 months agoAdding the go client. (#2629)
Dessalines [Tue, 3 Jan 2023 21:04:22 +0000 (16:04 -0500)]
Adding the go client. (#2629)

* Adding the go client.

* Adding lemmyBB, and a stub for lemmy-rust-client

* Updating to use api_common readme.

22 months agoPoint to !lemmy_support for support questions (#2638)
Nutomic [Tue, 3 Jan 2023 08:28:21 +0000 (09:28 +0100)]
Point to !lemmy_support for support questions (#2638)

22 months agoAdd documentation for using Lemmy API from Rust (#2639)
Nutomic [Tue, 3 Jan 2023 08:23:41 +0000 (09:23 +0100)]
Add documentation for using Lemmy API from Rust (#2639)

22 months agoImprove application question check (#2628)
Nutomic [Fri, 23 Dec 2022 01:31:39 +0000 (01:31 +0000)]
Improve application question check (#2628)

The check was failing if only require_application was passed
and not application_question, despite application_question
being set in database.

22 months agoFix user following (#2623)
Nutomic [Mon, 19 Dec 2022 15:55:26 +0000 (15:55 +0000)]
Fix user following (#2623)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
22 months agoAllow embedding Lemmy, fix setup error (#2618)
Nutomic [Mon, 19 Dec 2022 15:54:42 +0000 (15:54 +0000)]
Allow embedding Lemmy, fix setup error (#2618)

* Fix error during site creation due to empty LocalSiteRateLimit update

* Move main function into lib.rs, to allow calling from other crates

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoFixing missing forms, incorrect user discussion_languages (#2580)
Dessalines [Mon, 19 Dec 2022 11:40:22 +0000 (06:40 -0500)]
Fixing missing forms, incorrect user discussion_languages (#2580)

* Fixing missing forms, incorrect user discussion_languages

* Add discussion_language to CommunityResponse

* Adding discussion_languages to CommunityResponse

* Adding discussion_language logic to community.create

23 months agoAdd support for Featured Posts (#2585)
Anon [Mon, 12 Dec 2022 11:17:10 +0000 (05:17 -0600)]
Add support for Featured Posts (#2585)

* Add support for Featured Posts

* Fix rebase

* More fixes

23 months agoRemove federation backwards compatibility with 0.16.x (#2183)
Nutomic [Fri, 9 Dec 2022 16:21:17 +0000 (16:21 +0000)]
Remove federation backwards compatibility with 0.16.x (#2183)

* Breaking: remove compatiblity with page.url field (ref #2182)

* Breaking: change type of Instance to `Application` (ref #2200)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoRework websocket (#2598)
Nutomic [Fri, 9 Dec 2022 15:31:47 +0000 (15:31 +0000)]
Rework websocket (#2598)

* Merge websocket crate into api_common

* Add SendActivity trait so that api crates compile in parallel with lemmy_apub

* Rework websocket code

* fix websocket heartbeat

23 months agoMerge pull request #2593 from LemmyNet/refactor-notifications
Nutomic [Fri, 2 Dec 2022 11:17:10 +0000 (11:17 +0000)]
Merge pull request #2593 from LemmyNet/refactor-notifications

Refactor crates for parallel build

23 months agoAdd SendActivity trait so that api crates compile in parallel with lemmy_apub
Felix Ableitner [Mon, 28 Nov 2022 14:29:33 +0000 (15:29 +0100)]
Add SendActivity trait so that api crates compile in parallel with lemmy_apub

23 months agoMove code to generate apub urls into lemmy_api_common
Felix Ableitner [Sat, 26 Nov 2022 20:47:13 +0000 (21:47 +0100)]
Move code to generate apub urls into lemmy_api_common

23 months agoBuilds lemmy_routes in parallel with lemmy_apub
Felix Ableitner [Sat, 26 Nov 2022 20:34:38 +0000 (21:34 +0100)]
Builds lemmy_routes in parallel with lemmy_apub

23 months agoMerge websocket crate into api_common
Felix Ableitner [Sat, 26 Nov 2022 02:04:46 +0000 (03:04 +0100)]
Merge websocket crate into api_common

23 months agoCheck user accepted before sending jwt in password reset (fixes #2591) (#2597)
Nutomic [Thu, 1 Dec 2022 21:36:03 +0000 (21:36 +0000)]
Check user accepted before sending jwt in password reset (fixes #2591) (#2597)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoRelax honeypot check (fixes #2595) (#2596)
Nutomic [Thu, 1 Dec 2022 21:33:59 +0000 (21:33 +0000)]
Relax honeypot check (fixes #2595) (#2596)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoUse audience field to federate items in groups (fixes #2464) (#2584)
Nutomic [Thu, 1 Dec 2022 20:52:49 +0000 (20:52 +0000)]
Use audience field to federate items in groups (fixes #2464) (#2584)

23 months agoFederate group moderators using attributedTo field (#2588)
Nutomic [Fri, 25 Nov 2022 14:01:58 +0000 (14:01 +0000)]
Federate group moderators using attributedTo field (#2588)

* Federate group moderators using attributedTo field

* fix tests

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoSet cargo home in ci to avoid redownloading deps between steps (#2587)
Nutomic [Fri, 25 Nov 2022 04:43:31 +0000 (04:43 +0000)]
Set cargo home in ci to avoid redownloading deps between steps (#2587)

* Set cargo home in ci to avoid redownloading deps between steps

* remove protobuf

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoAdd some more clippy lints (#2586)
Nutomic [Thu, 24 Nov 2022 16:38:00 +0000 (16:38 +0000)]
Add some more clippy lints (#2586)

* Add some more clippy lints

* restore config

* no allow dirty

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoUse release docker image for nightly build (#2583)
Nutomic [Thu, 24 Nov 2022 13:33:58 +0000 (13:33 +0000)]
Use release docker image for nightly build (#2583)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoImplement federated user following (fixes #752) (#2577)
Nutomic [Wed, 23 Nov 2022 23:40:47 +0000 (23:40 +0000)]
Implement federated user following (fixes #752) (#2577)

* Implement federated user following (fixes #752)

* rewrite send_activity_in_community and add docs, remove default for column pending

* improve migration

* replace null values in db migration

23 months agoRevert "Test drone (#2582)"
Felix Ableitner [Wed, 23 Nov 2022 20:25:24 +0000 (21:25 +0100)]
Revert "Test drone (#2582)"

This reverts commit 87c7ee54906f8e281ab260dfe6d215f09282398c.

23 months agoTest drone (#2582)
Nutomic [Wed, 23 Nov 2022 20:23:23 +0000 (20:23 +0000)]
Test drone (#2582)

23 months agoUpgrade activitypub_federation to 0.3.4 (#2581)
Nutomic [Wed, 23 Nov 2022 14:06:25 +0000 (14:06 +0000)]
Upgrade activitypub_federation to 0.3.4 (#2581)

23 months agoUpgrade activitypub_federation crate to 0.3.3 (ref #2511) (#2578)
Nutomic [Tue, 22 Nov 2022 12:20:31 +0000 (12:20 +0000)]
Upgrade activitypub_federation crate to 0.3.3 (ref #2511) (#2578)

23 months agoRemove federation settings, rely on sensible defaults instead (#2574)
Nutomic [Mon, 21 Nov 2022 16:44:34 +0000 (16:44 +0000)]
Remove federation settings, rely on sensible defaults instead (#2574)

This affects federation_strict_allowlist and federation_http_fetch_retry_limit

23 months agoFix clippy lints. (#2572)
Dessalines [Mon, 21 Nov 2022 10:21:09 +0000 (05:21 -0500)]
Fix clippy lints. (#2572)

* Fix clippy lints.

* Fix fmt.

* Dont use cargo-workspaces for fix-clippy script.

23 months agoAdd support for Taglines (#2548)
Anon [Sat, 19 Nov 2022 14:48:29 +0000 (08:48 -0600)]
Add support for Taglines (#2548)

* Add support for Taglines

* recreate migration

* Update content column -> Text

* Optimize replace function

* Change taglines to Option

* Move Ok() call

* Move taglines to GetSiteResponse

* Fix logic

Co-authored-by: layla <layla@chapo.dev>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
23 months agoVarious pedantic clippy fixes (#2568)
Nutomic [Sat, 19 Nov 2022 04:33:54 +0000 (04:33 +0000)]
Various pedantic clippy fixes (#2568)

* Various pedantic clippy fixes

* more clippy pedantic fixes

* try to fix ci

* add fix clippy script, use rust 1.65

* fix clippy

2 years agoSort vecs before assert to avoid random test failures (#2569)
Nutomic [Sat, 19 Nov 2022 01:30:59 +0000 (01:30 +0000)]
Sort vecs before assert to avoid random test failures (#2569)

* Sort language read queries to avoid random test failures

* change sort columns

2 years agoDisplay build status badge from drone.join-lemmy.org (#2564)
Nutomic [Thu, 17 Nov 2022 18:51:17 +0000 (18:51 +0000)]
Display build status badge from drone.join-lemmy.org (#2564)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2 years agoSpecify dependencies and metadata for entire workspace (#2565)
Nutomic [Thu, 17 Nov 2022 15:23:01 +0000 (15:23 +0000)]
Specify dependencies and metadata for entire workspace (#2565)

* Specify dependencies and metadata for entire workspace (fixes #2474)

* building api_common shouldnt depend on diesel

* remove drone task

* try with quotes

* fix clippy

* more clippy

2 years agoUse enum_delegate crate (#2554)
Nutomic [Wed, 16 Nov 2022 22:51:05 +0000 (22:51 +0000)]
Use enum_delegate crate (#2554)

2 years agoLive reload settings (fixes #2508) (#2543)
Nutomic [Wed, 16 Nov 2022 19:06:22 +0000 (19:06 +0000)]
Live reload settings (fixes #2508) (#2543)

* Live reload rate limit settings (fixes #2508)

* fix tests

2 years agoFix activity list test (#2562)
Nutomic [Tue, 15 Nov 2022 22:38:26 +0000 (22:38 +0000)]
Fix activity list test (#2562)

2 years agoRemove unwrap
Felix Ableitner [Mon, 14 Nov 2022 14:30:44 +0000 (15:30 +0100)]
Remove unwrap

2 years agoWhen announcing incoming activities, keep extra fields (#2550)
Nutomic [Sat, 12 Nov 2022 13:52:57 +0000 (13:52 +0000)]
When announcing incoming activities, keep extra fields (#2550)

2 years agoMobilizon federation (#2544)
Nutomic [Sat, 12 Nov 2022 13:51:08 +0000 (13:51 +0000)]
Mobilizon federation (#2544)

* Mobilizon federation

* Also accept document attachments from mobilizon

2 years agoUpdate doku dependency for easier formatting of defaults.hjson (#2553)
Nutomic [Fri, 11 Nov 2022 21:01:29 +0000 (21:01 +0000)]
Update doku dependency for easier formatting of defaults.hjson (#2553)

2 years agoTranslated README.md to Chinese (#2549)
ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫 [Fri, 11 Nov 2022 10:10:13 +0000 (18:10 +0800)]
Translated README.md to Chinese (#2549)

* Add Mandarin locales

`README.zh.hans.md` for Simplified Chinese, `README.zh.hant.md` for Traditional Chinese

* Fix relative links to README

2 years agoAdd diesel_async, get rid of blocking function (#2510)
Dessalines [Wed, 9 Nov 2022 10:05:00 +0000 (05:05 -0500)]
Add diesel_async, get rid of blocking function (#2510)

* Moving settings to Database.

- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.

* Fix weird clippy issue.

* Removing extra lines.

* Some fixes from suggestions.

* Fixing apub tests.

* Using instance creation helper function.

* Move forms to their own line.

* Trying to fix local_site_data, still broken.

* Testing out async

* Testing out async 2

* Fixing federation tests.

* Trying to fix check features 1.

* Starting on adding diesel async. 1/4th done.

* Added async to views and schema.

* Adding some more async

* Compiling now.

* Added diesel async. Fixes #2465

* Running clippy --fix

* Trying to fix cargo test on drone.

* Trying new muslrust.

* Trying a custom dns

* Trying a custom dns 2

* Trying a custom dns 3

* Trying a custom dns 4

* Trying a custom dns 5

* Trying a custom dns 6

* Trying a custom dns 7

* Addressing PR comments.

* Adding check_apub to all verify functions.

* Reverting back drone.

* Fixing merge

* Fix docker images.

* Adding missing discussion_languages.

* Trying to fix federation tests.

* Fix site setup user creation.

* Fix clippy

* Fix clippy 2

* Test api faster

* Try to fix 1

* Try to fix 2

* What are these lines about

* Trying to fix 3

* Moving federation test back to top.

* Remove logging cat.

2 years agoUse urlencoding for db url params (fixes #2532) (#2537)
Nutomic [Tue, 8 Nov 2022 02:29:32 +0000 (02:29 +0000)]
Use urlencoding for db url params (fixes #2532) (#2537)

2 years agoDont serve apub json for removed objects (ref #2522) (#2538)
Nutomic [Sat, 5 Nov 2022 00:57:28 +0000 (00:57 +0000)]
Dont serve apub json for removed objects (ref #2522) (#2538)

2 years agoFix password length check (#2536)
Nutomic [Sat, 5 Nov 2022 00:56:38 +0000 (00:56 +0000)]
Fix password length check (#2536)

2 years agoRemove explicit panic from db connection code (fixes #2533) (#2535)
Nutomic [Sat, 5 Nov 2022 00:53:46 +0000 (00:53 +0000)]
Remove explicit panic from db connection code (fixes #2533) (#2535)

2 years agoSend error message when rate limit is reached (#2527)
Nutomic [Thu, 3 Nov 2022 18:13:40 +0000 (18:13 +0000)]
Send error message when rate limit is reached (#2527)

* Send error message when rate limit is reached

* l18n key

2 years agoMark own private messages as read in api (fixes #2484) (#2531)
Nutomic [Thu, 3 Nov 2022 17:41:44 +0000 (17:41 +0000)]
Mark own private messages as read in api (fixes #2484) (#2531)

2 years agoMark objects as not deleted when received via apub (fixes #2507) (#2528)
Nutomic [Thu, 3 Nov 2022 13:39:30 +0000 (13:39 +0000)]
Mark objects as not deleted when received via apub (fixes #2507) (#2528)

2 years agoGroup imports dess (#2526)
Dessalines [Wed, 2 Nov 2022 19:18:22 +0000 (15:18 -0400)]
Group imports dess (#2526)

* Group imports with rustfmt

* Running cargo fmt again.

Co-authored-by: Felix Ableitner <me@nutomic.com>
2 years agoFix invalid config in docker/prod (fixes #2520) (#2524)
Nutomic [Wed, 2 Nov 2022 18:50:09 +0000 (18:50 +0000)]
Fix invalid config in docker/prod (fixes #2520) (#2524)

2 years agoFix local site images. (#2519)
Dessalines [Wed, 2 Nov 2022 12:10:40 +0000 (08:10 -0400)]
Fix local site images. (#2519)

* Fix local site images.

* It should be set up.

2 years agoFix 2455: Check auth for pictrs when instance is private. (#2477)
sam365724 [Fri, 28 Oct 2022 14:43:33 +0000 (16:43 +0200)]
Fix 2455: Check auth for pictrs when instance is private. (#2477)

* Fix 2455: Check auth for pictrs when instance is private.

* Update, no utils function, use of existing get_local_user_view_from_jwt

* rustup toolchain install nightly (ftw)

2 years agoFix limit_languages to operate on correct instance (fixes #2496) (#2518)
Nutomic [Fri, 28 Oct 2022 14:42:05 +0000 (14:42 +0000)]
Fix limit_languages to operate on correct instance (fixes #2496) (#2518)

* Fix limit_languages to operate on correct instance (fixes #2496)

* cargo fmt

2 years agoImage improvements (#2513)
Nutomic [Fri, 28 Oct 2022 14:34:40 +0000 (14:34 +0000)]
Image improvements (#2513)

* Image improvements

* remove rate limits

2 years agoMake verify apub url function async (#2514)
Nutomic [Fri, 28 Oct 2022 13:38:22 +0000 (13:38 +0000)]
Make verify apub url function async (#2514)

* Make verify apub url function async

* cleanup

* use dep from crates.io

* dont use unwrap

2 years agoMoving settings to Database. (#2492)
Dessalines [Thu, 27 Oct 2022 09:24:07 +0000 (05:24 -0400)]
Moving settings to Database. (#2492)

* Moving settings to Database.

- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.

* Fix weird clippy issue.

* Removing extra lines.

* Some fixes from suggestions.

* Fixing apub tests.

* Using instance creation helper function.

* Move forms to their own line.

* Trying to fix local_site_data, still broken.

* Fixing federation tests.

* Trying to fix check features 1.

* Addressing PR comments.

* Adding check_apub to all verify functions.

2 years agoEnable lto, strip symbols via cargo.toml (#2512)
Nutomic [Tue, 25 Oct 2022 15:10:07 +0000 (15:10 +0000)]
Enable lto, strip symbols via cargo.toml (#2512)

2 years agoFix docker dev build (#2509)
Dessalines [Fri, 21 Oct 2022 15:13:24 +0000 (11:13 -0400)]
Fix docker dev build (#2509)

* Fixing docker dev build.

* Remove volume mount files.

* Fixing pictrs.

* Addressing PR comments.

2 years agoFederate votes as private (#2501)
Nutomic [Tue, 18 Oct 2022 03:13:18 +0000 (03:13 +0000)]
Federate votes as private (#2501)

2 years agoDont try to send activities if federation is disabled (fixes #2499) (#2500)
Nutomic [Mon, 17 Oct 2022 18:29:18 +0000 (18:29 +0000)]
Dont try to send activities if federation is disabled (fixes #2499) (#2500)

2 years agoReturn empty vec when reading all languages (fixes #2495) (#2497)
Nutomic [Mon, 17 Oct 2022 09:37:22 +0000 (09:37 +0000)]
Return empty vec when reading all languages (fixes #2495) (#2497)

2 years agoUpdate clippy to use Rust 1.64 (#2498)
Nutomic [Fri, 14 Oct 2022 16:09:37 +0000 (16:09 +0000)]
Update clippy to use Rust 1.64 (#2498)

2 years agoOnly allow authenticated users to fetch remote objects (#2493)
Nutomic [Thu, 13 Oct 2022 16:30:31 +0000 (16:30 +0000)]
Only allow authenticated users to fetch remote objects (#2493)

* Only allow authenticated users to fetch remote objects

* try to fix api tests

2 years agoMore real-world prod config, separate lemmy config (#2487)
sam365724 [Mon, 10 Oct 2022 16:06:52 +0000 (18:06 +0200)]
More real-world prod config, separate lemmy config (#2487)