]> Untitled Git - lemmy.git/log
lemmy.git
19 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

19 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.

19 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>
19 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

19 months 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

19 months 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>
19 months 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

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

19 months 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

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

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

20 months 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)

20 months 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

20 months 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)

20 months 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

20 months 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.

20 months 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)

20 months 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)

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

20 months 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)

20 months 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

20 months 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)

20 months 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)

20 months 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>
20 months 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)

20 months 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.

20 months 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)

20 months 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

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

* Image improvements

* remove rate limits

20 months 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

20 months 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.

20 months 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)

20 months 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.

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

20 months 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)

20 months 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)

21 months 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)

21 months 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

21 months 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)

21 months agoFix check for federated mod actions (#2489)
Nutomic [Mon, 10 Oct 2022 15:20:36 +0000 (15:20 +0000)]
Fix check for federated mod actions (#2489)

21 months agoMake docker-compose more clear and explicit (#2469)
sam365724 [Thu, 6 Oct 2022 19:01:19 +0000 (21:01 +0200)]
Make docker-compose more clear and explicit (#2469)

* Make docker-compose more clear, starting with dev

Explicit networks, not opining ports when not necessary: Confusing for users. All requests go through nginx, so there is no need to open ports directly on pictrs and other services for example. I wasn't sure about jaeger and otel, maybe that can be changed somewhat too.

Also adding comments and things that are relevant for a prod setup too.

* Update with comments

* Providing dedicated nginx and lemmy conf

* Fix config key for pictrs.

* Fix config key for pictrs.

* updates on naming

* Adding docker compose build info

* Revert to more complete lemmy config

* Test and fix build paths

* Fix otel config

* Delete dev file

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 months agoimplement language tags for site/community in db and api (#2434)
Nutomic [Thu, 6 Oct 2022 18:27:58 +0000 (18:27 +0000)]
implement language tags for site/community in db and api (#2434)

* implement language tags for site/community in db and api

* add api checks for valid languages

* during db migration, update existing users, sites, communities to have all languages enabled

* init new users/communities with site languages (not all languages)

* federate site/community languages

* fix tests

* when updating site languages, limit community languages to this subset

also, when making a new post and subset of user lang, community lang
contains only one item, use that as post lang

* add tests for actor_language db functions

* include language list in siteview/communityview

* Fix some of the review comments

* Some more review changes

* Add todo about boxed query

* Add default_post_language to GetCommunityResponse

21 months agoChange description in readme (#2481)
Nutomic [Wed, 5 Oct 2022 16:25:17 +0000 (16:25 +0000)]
Change description in readme (#2481)

* Change description in readme

* Replace Mastodon contact link with Lemmy support forum

* update text

* remove part about unstable api

21 months agoUse compat mode when signing outgoing activities (fixes #1984) (#2473)
Nutomic [Mon, 3 Oct 2022 17:46:42 +0000 (17:46 +0000)]
Use compat mode when signing outgoing activities (fixes #1984) (#2473)

21 months agoCheck to make sure comment isnt deleted / removed for unread count. (#2472)
Dessalines [Thu, 29 Sep 2022 20:52:14 +0000 (16:52 -0400)]
Check to make sure comment isnt deleted / removed for unread count. (#2472)

- Fixes #2471

21 months agoDont show deleted users or communities on profile page. (#2450)
Dessalines [Wed, 28 Sep 2022 20:54:32 +0000 (16:54 -0400)]
Dont show deleted users or communities on profile page. (#2450)

* Dont show deleted users or communities on profile page.

- Fixes #2448

* Fix missing communities

* Add include_deleted to resolve_actor_identifier.

21 months agoAdding email admins for new applications. Fixes #2271 (#2390)
Dessalines [Tue, 27 Sep 2022 16:48:44 +0000 (12:48 -0400)]
Adding email admins for new applications. Fixes #2271 (#2390)

* Adding email admins for new applications. Fixes #2271

* Fix error.

Co-authored-by: Nutomic <me@nutomic.com>
21 months agoShowing # of unread comments for posts. Fixes #2134 (#2393)
Dessalines [Tue, 27 Sep 2022 16:45:46 +0000 (12:45 -0400)]
Showing # of unread comments for posts. Fixes #2134 (#2393)

* Showing # of unread comments for posts. Fixes #2134

* Fix lint.

* Forgot to remove comment list update.

* Fix clippy

21 months agoConvert emails to lowercase (fixes #2462) (#2463)
Nutomic [Tue, 27 Sep 2022 16:02:04 +0000 (16:02 +0000)]
Convert emails to lowercase (fixes #2462) (#2463)

21 months agoRemove unnecessary show_deleted_and_removed comments for a profile. (#2458)
Dessalines [Mon, 26 Sep 2022 20:02:06 +0000 (16:02 -0400)]
Remove unnecessary show_deleted_and_removed comments for a profile. (#2458)

21 months agoRemove pointless language joins. (#2451)
Dessalines [Mon, 26 Sep 2022 15:25:18 +0000 (11:25 -0400)]
Remove pointless language joins. (#2451)

* Remove pointless language joins.

* Fix test

21 months agoFix rate limit error messages. Fixes #2428 (#2449)
Dessalines [Mon, 26 Sep 2022 14:40:42 +0000 (10:40 -0400)]
Fix rate limit error messages. Fixes #2428 (#2449)

* Fix rate limit error messages. Fixes #2428

* Simplify

21 months agoFix missing local user from post queries. (#2447)
Dessalines [Mon, 26 Sep 2022 14:39:22 +0000 (10:39 -0400)]
Fix missing local user from post queries. (#2447)

21 months agoDiesel 2.0.0 upgrade (#2452)
Dessalines [Mon, 26 Sep 2022 14:09:32 +0000 (10:09 -0400)]
Diesel 2.0.0 upgrade (#2452)

* Initial commit to bump diesel to 2.0.0-rc.0 and see what happens

* Add chrono feature from diesel

* db_schema crate is close to building?

* Upgrade diesel-derive-newtype

* Mostly modifying references to connections to be mutable ones; also used
new way to do migrations as suggested by the migration guide; a lot more
compiles now, though I can't figure out this tricky ToSql issue at the
moment

* Running clippy --fix

* Trying to fix drone clippy 1

* Fix clippy

* Upgrade clux-musl

* Trying to fix drone clippy 2

* Trying to fix drone clippy 3

* Trying to fix drone clippy 5

* Adding diesel table aliases, removing sql view hack. Fixes #2101

Co-authored-by: Steven Chu <stevenc1@gmail.com>
Co-authored-by: Nutomic <me@nutomic.com>
21 months agoAllow filtering out of deleted and removed comments when getting person details ...
kartikynwa [Wed, 21 Sep 2022 01:33:33 +0000 (07:03 +0530)]
Allow filtering out of deleted and removed comments when getting person details (#2446)

undefined

21 months agoImplement reports for private messages (#2433)
Nutomic [Mon, 19 Sep 2022 22:58:42 +0000 (22:58 +0000)]
Implement reports for private messages (#2433)

* Implement reports for private messages

* finish private message report view + test

* implement api for pm reports

* merge list report api calls into one, move report count to site

* fix compile error

* Revert "merge list report api calls into one, move report count to site"

This reverts commit 3bf3b06a705c6bcf2bf20d07e2819b81298790f3.

* add websocket messages for pm report created/resolved

* remove private_message_report_view

* add joinable private_message_report -> person_alias_1

* Address review comments

21 months agoCheck for slurs in account creation. (#2443)
Dessalines [Mon, 19 Sep 2022 19:42:42 +0000 (15:42 -0400)]
Check for slurs in account creation. (#2443)

22 months agoMerge branch 'main' of https://github.com/LemmyNet/lemmy
Dessalines [Wed, 14 Sep 2022 15:30:44 +0000 (11:30 -0400)]
Merge branch 'main' of https://github.com/LemmyNet/lemmy

22 months agoAdd 0.16.7 release notes.
Dessalines [Wed, 14 Sep 2022 15:30:40 +0000 (11:30 -0400)]
Add 0.16.7 release notes.

22 months agoThe language id is crucial for front ends. (#2437)
Dessalines [Tue, 13 Sep 2022 21:02:37 +0000 (17:02 -0400)]
The language id is crucial for front ends. (#2437)

22 months agoUpdate docker version to 0.16.6. Fixes #2435 (#2438)
Dessalines [Mon, 12 Sep 2022 09:33:49 +0000 (05:33 -0400)]
Update docker version to 0.16.6. Fixes #2435 (#2438)

22 months agoAdding job to drop phantom ccnew indexes. Fixes #2431 (#2432)
Dessalines [Wed, 7 Sep 2022 12:12:51 +0000 (08:12 -0400)]
Adding job to drop phantom ccnew indexes. Fixes #2431 (#2432)

22 months agoDon't search for community descriptions, search for user display_name. (#2430)
Dessalines [Wed, 7 Sep 2022 08:58:41 +0000 (04:58 -0400)]
Don't search for community descriptions, search for user display_name. (#2430)

- https://github.com/LemmyNet/lemmy-ui/issues/756

22 months agoIncrease default search rate limit. (#2424)
Dessalines [Sat, 3 Sep 2022 09:37:27 +0000 (05:37 -0400)]
Increase default search rate limit. (#2424)

22 months agofix clippy
Felix Ableitner [Thu, 1 Sep 2022 09:20:33 +0000 (11:20 +0200)]
fix clippy

22 months agodont set default user languages in api code (already done in db)
Felix Ableitner [Tue, 30 Aug 2022 20:36:01 +0000 (22:36 +0200)]
dont set default user languages in api code (already done in db)

22 months agodont test with all features
Felix Ableitner [Wed, 24 Aug 2022 11:44:50 +0000 (13:44 +0200)]
dont test with all features

22 months agoclippy fixes
Felix Ableitner [Tue, 23 Aug 2022 21:57:44 +0000 (23:57 +0200)]
clippy fixes

22 months agoapi changes for comment language tagging
Felix Ableitner [Tue, 23 Aug 2022 21:40:56 +0000 (23:40 +0200)]
api changes for comment language tagging

22 months agoadd test for comment view languages
Felix Ableitner [Tue, 23 Aug 2022 21:20:00 +0000 (23:20 +0200)]
add test for comment view languages

22 months agofix tests
Felix Ableitner [Tue, 23 Aug 2022 19:38:51 +0000 (21:38 +0200)]
fix tests

22 months agoAdd language tags for comments
Felix Ableitner [Mon, 22 Aug 2022 20:55:10 +0000 (22:55 +0200)]
Add language tags for comments

22 months agoPass LocalUser to PostQuery etc, instead of separate params (#2413)
Nutomic [Fri, 19 Aug 2022 14:27:39 +0000 (14:27 +0000)]
Pass LocalUser to PostQuery etc, instead of separate params (#2413)

22 months agoTag posts and comments with language (fixes #440) (#2269)
Nutomic [Thu, 18 Aug 2022 19:11:19 +0000 (19:11 +0000)]
Tag posts and comments with language (fixes #440) (#2269)

* Tag posts and comments with language (fixes #440)

* Untangle PostView tests

* Implement test for PostView language query

* Store languages directly in database

* finish moving languages into db, it compiles

* update post_view

* serde skip Language.id field

* add local_user_language table, other changes suggested in review

* add code for local_user_discussion_language_view

* Remove unnecessary clones in db view converteres

* Fixing up some table and join issues.

* Clearing the current languages.

* Fix formatting.

* update user languages in single transaction

* proper test for user language queries

* Some fixes for all / missing user languages. (#2404)

* Some fixes for all / missing user languages.

* Adding back in transaction.

* fix test

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
22 months agoRejected federated pm from blocked users (fixes #2398) (#2408)
Nutomic [Wed, 17 Aug 2022 20:53:19 +0000 (20:53 +0000)]
Rejected federated pm from blocked users (fixes #2398) (#2408)

22 months agoAdding distinguish comment. Fixes #2002 (#2391)
Dessalines [Wed, 17 Aug 2022 11:38:52 +0000 (07:38 -0400)]
Adding distinguish comment. Fixes #2002 (#2391)

* Adding distinguish comment. Fixes #2002

* Adding lemmy:distinguished

22 months agoFix pictrs routing (#2407)
Nutomic [Tue, 16 Aug 2022 15:20:41 +0000 (15:20 +0000)]
Fix pictrs routing (#2407)

* SUGGESTED FIX TO PICTRS ROUTING 404 ERROR #2359

Removed slashes at "/image" routes.

* cargo fmt

Co-authored-by: Majid ✨ <72635080+umamawme@users.noreply.github.com>
22 months agoAdd postgres auto-explain for dev testing. (#2399)
Dessalines [Tue, 16 Aug 2022 12:22:29 +0000 (08:22 -0400)]
Add postgres auto-explain for dev testing. (#2399)

* Add postgres auto-explain for dev testing.

* add newline

* fix indent

Co-authored-by: Nutomic <me@nutomic.com>
22 months agoAdd Modlog Filters (#2313)
Anon [Tue, 16 Aug 2022 11:52:04 +0000 (06:52 -0500)]
Add Modlog Filters (#2313)

* Fix crash running locally on windows.

* Add support for filtering mod logs

* Refactor cleanup

* Clippy fix

* Condense match statements

* Clippy fix 2

22 months agoAccept Image objects in attachments (#2394)
vpzomtrrfrt [Tue, 16 Aug 2022 10:12:43 +0000 (03:12 -0700)]
Accept Image objects in attachments (#2394)

23 months agoTweaking postgres upgrade script (#2389)
Dessalines [Thu, 4 Aug 2022 20:03:14 +0000 (16:03 -0400)]
Tweaking postgres upgrade script (#2389)

* Tweaking postgres upgrade script

* Removing pointless comments.

23 months agoUse typed-builder crate for queries (#2379)
Nutomic [Thu, 4 Aug 2022 19:30:17 +0000 (21:30 +0200)]
Use typed-builder crate for queries (#2379)

* Use typed-builder crate for PrivateMessageQuery

* derive builder for all queries

* remove unnecessary clones

* fix tests

23 months agoUse doku release version (ref #2343) (#2386)
Nutomic [Tue, 2 Aug 2022 13:38:19 +0000 (15:38 +0200)]
Use doku release version (ref #2343) (#2386)

23 months agoFirst pass at adding comment trees. (#2362)
Dessalines [Sat, 30 Jul 2022 03:55:59 +0000 (23:55 -0400)]
First pass at adding comment trees. (#2362)

* First pass at adding comment trees.

- Extracted comment replies into its own table.
- Added ltree column to comment
- Added parent_id param to GetComments to fetch a tree branch
- No paging / limiting yet

* Adding child_count to comment_aggregates.

* Adding parent comment update counts

* Fix unit tests.

* Comment tree paging mostly done.

* Fix clippy

* Fix drone tests wrong postgres version.

* Fix unit tests.

* Add back in delete in unit test.

* Add postgres upgrade script.

* Fixing some PR comments.

* Move update ltree into Comment::create

* Updating based on comments.

* Fix send soft fail.

23 months agoUpdate apub examples to remove `to` field (ref #2380) (#2382)
Nutomic [Fri, 29 Jul 2022 17:30:38 +0000 (19:30 +0200)]
Update apub examples to remove `to` field (ref #2380) (#2382)

23 months agoHandle Like, Undo/Like activities from Mastodon, add tests (fixes #2378) (#2380)
Nutomic [Fri, 29 Jul 2022 13:32:12 +0000 (15:32 +0200)]
Handle Like, Undo/Like activities from Mastodon, add tests (fixes #2378) (#2380)

23 months agoFix a few form options for diesel. Fixes #2287 (#2376)
Dessalines [Fri, 29 Jul 2022 13:04:21 +0000 (09:04 -0400)]
Fix a few form options for diesel. Fixes #2287 (#2376)

* Fix a few form options for diesel. Fixes #2287

* Adding TODO comment.

23 months agoRemove docker/pleroma/ folder (#2381)
Nutomic [Fri, 29 Jul 2022 12:37:23 +0000 (14:37 +0200)]
Remove docker/pleroma/ folder (#2381)

23 months agoRemove listing type community. Fixes #2361 (#2377)
Dessalines [Fri, 29 Jul 2022 10:57:39 +0000 (06:57 -0400)]
Remove listing type community. Fixes #2361 (#2377)

* Remove listing type community. Fixes #2361

* Have ListingType::All be the default

23 months agoDont allow login if account is banned or deleted (fixes #2372) (#2374)
Nutomic [Thu, 28 Jul 2022 21:14:07 +0000 (23:14 +0200)]
Dont allow login if account is banned or deleted (fixes #2372) (#2374)

23 months agoSend websocket message on accepted follow. Fixes #2369 (#2375)
Dessalines [Thu, 28 Jul 2022 15:49:26 +0000 (11:49 -0400)]
Send websocket message on accepted follow. Fixes #2369 (#2375)

23 months agoFix panics in search_by_apub_id() (fixes #2371) (#2373)
Nutomic [Wed, 27 Jul 2022 21:03:44 +0000 (21:03 +0000)]
Fix panics in search_by_apub_id() (fixes #2371) (#2373)

23 months agoFix follow being stuck as pending after accept (#2366)
Nutomic [Wed, 20 Jul 2022 14:10:29 +0000 (14:10 +0000)]
Fix follow being stuck as pending after accept (#2366)

* Fix follow being stuck as pending after accept

* fix api test

23 months agoAdding 0.16.6 release
Dessalines [Tue, 19 Jul 2022 19:01:15 +0000 (15:01 -0400)]
Adding 0.16.6 release

2 years agoChange config pictrs key name (#2360)
Nutomic [Thu, 14 Jul 2022 18:25:10 +0000 (18:25 +0000)]
Change config pictrs key name (#2360)

2 years agoConfig changes, remove unused image purge function (#2343)
Nutomic [Mon, 11 Jul 2022 20:38:37 +0000 (20:38 +0000)]
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

2 years agoFix problem where actors can have empty public key (fixes #2347) (#2348)
Nutomic [Mon, 11 Jul 2022 18:25:33 +0000 (18:25 +0000)]
Fix problem where actors can have empty public key (fixes #2347) (#2348)

2 years agoremove parking_lot (#2350)
Luna [Mon, 11 Jul 2022 17:12:12 +0000 (22:42 +0530)]
remove parking_lot (#2350)

2 years agoRevert "Use correct url for activitystreams protocol context (#2326)" (#2351)
Dessalines [Fri, 8 Jul 2022 10:47:40 +0000 (06:47 -0400)]
Revert "Use correct url for activitystreams protocol context (#2326)" (#2351)

This reverts commit dc35ab9c2b924648e72289577ff46bee4ff81a87.

2 years agoAdding check for requests with no id or name, adding max limit. (#2265)
Dessalines [Fri, 8 Jul 2022 10:21:33 +0000 (06:21 -0400)]
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