Commit graph

36 commits

Author SHA1 Message Date
nutomic 80aef61aed Split code into cargo workspaces (#67)
More fixes

- fixed docker builds
- fixed mentions regex test
- fixed DATABASE_URL stuff
- change schema path in diesel.toml

Address review comments

- add jsonb column back into activity table
- remove authors field from cargo.toml
- adjust LEMMY_DATABASE_URL env var usage
- rename all occurences of LEMMY_DATABASE_URL to DATABASE_URL

Decouple utils and db

Split code into cargo workspaces

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/67
2020-07-10 18:15:41 +00:00
Filip785 7c35fc546b Create new migration to add creator_published field to the post_view and comment_view 2020-07-09 17:19:30 +02:00
Dessalines f4565d0603
Remove materialized views. (#908)
* One pass at materialized views, only about 30% faster, not good.

* Before merging master to test out bans.

* DB Rework working, still need more testing.

* Fixing accidental addadmin bug from asonix async merge.

* Fixing the comment delete trigger

* Some more DB additions.

- Adding a hot_rank desc, published desc index to post_aggregates_fast.
- Removed WITH CTE queries in favor of direct selects (since CTEs cant
  use indexes)

* Removing some unecessary indexes.

* Some more DB optimizings

- Changing the fast_id pkeys to just ids on the fast tables.
- Removing the private_message_fast, since the view contains no aggregates.
- Comment and post voting now no longer pull from the views, they update the counts directly.

* Adding community_agg_view and post_agg_views Credit: eiknat.

* Adding user and comment_view migrations. (comment_view still broken)

* Adding more views. Credit Eiknat.
2020-07-07 10:54:44 -04:00
Dessalines 15f1920b25 Federated private messages. 2020-05-05 22:06:24 -04:00
Dessalines 56947e7710 Removing community name unique constraint. Removing useless fedi_name column from user_table. 2020-04-07 10:54:15 -04:00
Dessalines 85ea1046f0 Adding post and comment ap_id columns. 2020-04-03 20:04:57 -04:00
Dessalines 9197b39ed6 Federation DB Changes.
- Creating an activity table.
- Adding some federation-related columns to the user_ and community
  tables.
- Generating the actor_id and keys in code, updating the tables.
2020-04-03 00:12:05 -04:00
Dessalines ac280782b2 Iframely and pictshare backend mostly done. 2020-03-07 18:31:13 -05:00
Dessalines 253bc3e0af Adding private messaging, and matrix user ids.
- Fixes #244
2020-01-22 16:38:16 -05:00
Dessalines 81c6d276d5 Fix issue with adding multiple instances of chatserver. 2020-01-15 22:01:14 -05:00
Dessalines 498ec2d8e0 Fix testing by using RUST_TEST_THREADS=1. 2020-01-13 21:02:04 -05:00
Dessalines 5b42dc3393 Adding show_avatar user setting, and option to send notifications to inbox.
- Fixes #254
- Fixes #394
2020-01-02 16:55:54 -05:00
Dessalines a4428528e3 Adding user avatars / icons. Requires pictshare.
- Fixes #188
2019-12-29 15:39:48 -05:00
Dessalines fca8e6a0a9 Adding some site oriented settings.
- Adding option to close registration. Fixes #350
- Adding option to disable showing NSFW buttons. Fixes #364
- Adding option to disable downvotes. Fixes #239
2019-12-11 12:21:47 -08:00
Dessalines f0808a1116 Adding custom language setting.
- Fixes #319
2019-12-09 00:24:53 -08:00
Dessalines 3350599901 Running cargo fmt. 2019-11-01 23:43:21 -07:00
Dessalines 9f35b33dc7 Halfway done with email, not fully working yet. 2019-10-29 20:35:39 -07:00
Dessalines 90ce1f1a3f Adding default sort / filter into user settings.
- Fixes #295
2019-10-20 21:21:54 -07:00
Dessalines 02dd9ac32a Adding username mentions / tagging from comments.
- Fixes #293
2019-10-19 17:46:29 -07:00
Dessalines 536313889d Running cargo fmt. 2019-10-15 15:10:42 -07:00
Dessalines c0821fcaa5 Adding 8 different themes.
- Fixes #276
2019-10-15 12:21:27 -07:00
Dessalines 3f6b2be2cc Adding stickied posts.
- Fixes #245
2019-09-08 23:14:13 -07:00
Dessalines 44442565aa Running cargo fmt on server code.
- Adding a .rustfmt.toml for the 2 space indent.
2019-09-07 08:35:05 -07:00
Dessalines d7ab85ab70 Squashed commit of the following:
commit ecd6c5a2f4
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 19:49:38 2019 -0700

    Adding some docs

commit 3babd09aff
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 19:28:46 2019 -0700

    Adding save user settings

commit 6e8da9cc9e
Merge: 3246d5d c148eef
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 17:26:25 2019 -0700

    Merge branch 'dev' into nsfw

commit b3d4a5c4ce
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Aug 11 20:55:09 2019 -0700

    nsfw mostly done, except for settings page.
2019-08-13 19:52:43 -07:00
Dessalines f57004d7fa Adding proper deletes for Post, Community, and Comments.
- Fixes #132
- Fixes #108
2019-04-29 12:14:54 -07:00
Dessalines 9afadfb9c4 Saving replies, the actual fixes will be in the merge to dev. 2019-04-19 21:06:25 -07:00
Dessalines 3f33cf8dcb Before big moderation merge 2019-04-16 16:04:23 -07:00
Dessalines e94885eb97 Commiting before I lose everything. I'll do this properly in a merge 2019-04-15 16:12:06 -07:00
Dessalines e690d6c470 Adding post editing.
- Adding post editing. Fixes #23
- Making SQL versions of comment and post fetching. Fixes #21
- Starting to add forum categories. #17
2019-04-03 13:59:37 -07:00
Dessalines c786464381 Adding forum / community pages
- Adding main forum page. Fixes #11
- Adding view version for posts. #21
- Got rid of fedi user ids. Fixes #22
- Post sorting working. Fixes #24
2019-04-02 23:49:32 -07:00
Dessalines 49c61fc318 Adding comment voting
- Extracting out some components.
- Fixing an issue with window refreshing websockets.
2019-03-28 12:32:08 -07:00
Dessalines 25dcb8f4f4 Adding a few endpoints.
- Adding CreatePost, CreateComment, CreateCommunity
2019-03-26 11:00:18 -07:00
Dessalines 064d7f84b2 Adding posts and comments. 2019-03-05 17:00:01 -08:00
Dessalines 58de24c424 Adding and activitypub output for user. 2019-03-04 19:52:09 -08:00
Dessalines a62a7cb6a2 Adding User and Community types. 2019-03-04 08:39:07 -08:00
Dessalines 92ea945619 Starting to work on Rust Diesel Schema. #5 2019-02-27 22:02:55 -08:00