Commit graph

613 commits

Author SHA1 Message Date
Dessalines
0ef0d0d24a Trying to fix cargo test on drone. 2022-10-24 19:57:18 -04:00
Dessalines
da6be58329 Running clippy --fix 2022-10-24 17:52:23 -04:00
Dessalines
8b564756e3 Compiling now. 2022-10-24 15:52:00 -04:00
Dessalines
de5cd254c0 Adding some more async 2022-10-24 02:30:39 -04:00
Dessalines
39294a051c Added async to views and schema. 2022-10-23 18:19:19 -04:00
Dessalines
c631cbd6c8 Starting on adding diesel async. 1/4th done. 2022-10-22 15:30:10 -04:00
Dessalines
3254fc0fb4 Merge branch 'move_blocklist_to_db' into diesel_async_1 2022-10-21 21:16:01 -04:00
Dessalines
d10f498fe2 Trying to fix check features 1. 2022-10-20 22:38:40 -04:00
Dessalines
f3cff33b35 Fixing federation tests. 2022-10-20 22:10:35 -04:00
Dessalines
17fd31ef17 Merge branch 'main' into move_blocklist_to_db 2022-10-18 00:04:20 -04:00
Dessalines
0d541326f3 Testing out async 2 2022-10-18 00:04:01 -04:00
Nutomic
aaaea2006c
Federate votes as private (#2501) 2022-10-18 03:13:18 +00:00
Nutomic
74bc1198ce
Dont try to send activities if federation is disabled (fixes #2499) (#2500) 2022-10-17 14:29:18 -04:00
Nutomic
0a60bcb8ee
Return empty vec when reading all languages (fixes #2495) (#2497) 2022-10-17 09:37:22 +00:00
Dessalines
518f450989 Trying to fix local_site_data, still broken. 2022-10-14 13:07:36 -04:00
Dessalines
10664c62d1 Move forms to their own line. 2022-10-14 12:13:16 -04:00
Dessalines
cbd8eead41 Using instance creation helper function. 2022-10-14 12:07:54 -04:00
Dessalines
2fcea21d96 Fixing apub tests. 2022-10-14 11:34:30 -04:00
Dessalines
8b4996c10c Some fixes from suggestions. 2022-10-13 18:06:09 -04:00
Dessalines
c969675b9b Merge branch 'main' into move_blocklist_to_db 2022-10-13 15:38:11 -04:00
Dessalines
d21a81ffea Removing extra lines. 2022-10-13 15:23:51 -04:00
Nutomic
6c3e984ad1
Only allow authenticated users to fetch remote objects (#2493)
* Only allow authenticated users to fetch remote objects

* try to fix api tests
2022-10-13 16:30:31 +00:00
Dessalines
215a9dce88 Merge branch 'main' into move_blocklist_to_db 2022-10-12 16:17:29 -04:00
Dessalines
b63ab9f0b3 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.
2022-10-12 16:00:08 -04:00
Nutomic
ec5e63b5a9
Fix check for federated mod actions (#2489) 2022-10-10 11:20:36 -04:00
Nutomic
2ef0f8f5f8
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
2022-10-06 14:27:58 -04:00
Nutomic
290acf6acc
Use compat mode when signing outgoing activities (fixes #1984) (#2473) 2022-10-03 13:46:42 -04:00
Dessalines
3f8c28b26f
Check to make sure comment isnt deleted / removed for unread count. (#2472)
- Fixes #2471
2022-09-29 20:52:14 +00:00
Dessalines
ee41654394
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.
2022-09-28 20:54:32 +00:00
Dessalines
ae95f5928e
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>
2022-09-27 12:48:44 -04:00
Dessalines
0aeb78b8f3
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
2022-09-27 16:45:46 +00:00
Nutomic
f2537ba7db
Convert emails to lowercase (fixes #2462) (#2463) 2022-09-27 12:02:04 -04:00
Dessalines
3c5368d8b1
Remove unnecessary show_deleted_and_removed comments for a profile. (#2458) 2022-09-26 20:02:06 +00:00
Dessalines
2dca80d678
Remove pointless language joins. (#2451)
* Remove pointless language joins.

* Fix test
2022-09-26 15:25:18 +00:00
Dessalines
3adb293541
Fix rate limit error messages. Fixes #2428 (#2449)
* Fix rate limit error messages. Fixes #2428

* Simplify
2022-09-26 10:40:42 -04:00
Dessalines
9ce15ed071
Fix missing local user from post queries. (#2447) 2022-09-26 10:39:22 -04:00
Dessalines
c9f1407429
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>
2022-09-26 14:09:32 +00:00
kartikynwa
4e6409f325
Allow filtering out of deleted and removed comments when getting person details (#2446)
undefined
2022-09-20 21:33:33 -04:00
Nutomic
004efd5d94
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
2022-09-19 22:58:42 +00:00
Dessalines
09246a20fb
Check for slurs in account creation. (#2443) 2022-09-19 19:42:42 +00:00
Dessalines
a93095ed3f
The language id is crucial for front ends. (#2437) 2022-09-13 21:02:37 +00:00
Dessalines
3f2a689edf
Don't search for community descriptions, search for user display_name. (#2430)
- https://github.com/LemmyNet/lemmy-ui/issues/756
2022-09-07 08:58:41 +00:00
Dessalines
265dc54627
Increase default search rate limit. (#2424) 2022-09-03 11:37:27 +02:00
Felix Ableitner
0a14b17747 fix clippy 2022-09-02 10:49:54 -04:00
Felix Ableitner
3295784ebb dont set default user languages in api code (already done in db) 2022-09-02 10:49:54 -04:00
Felix Ableitner
5e8a37ac86 clippy fixes 2022-09-02 10:49:54 -04:00
Felix Ableitner
d058e2217a api changes for comment language tagging 2022-09-02 10:49:54 -04:00
Felix Ableitner
bc7450ae3e add test for comment view languages 2022-09-02 10:49:54 -04:00
Felix Ableitner
f5b1ee6c34 fix tests 2022-09-02 10:49:54 -04:00
Felix Ableitner
3d0d8796ad Add language tags for comments 2022-09-02 10:49:54 -04:00