Commit graph

62 commits

Author SHA1 Message Date
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 80bca8610e Revert "Remove mat views, no fast tables or caching added yet."
This reverts commit 97e088dcbf.
2020-06-29 21:00:28 -04:00
Dessalines 97e088dcbf Remove mat views, no fast tables or caching added yet. 2020-06-29 20:02:38 -04:00
Dessalines 86dc50f9f0 Some fixes to federation.
- Advanced code migrations now disable then re-enable triggers.
  Brings run time down to < 15 seconds, no need to thread them.
- Changing ap_ids and actor_ids in migrations to a fake url,
  so it doesn't break XsdAnyUri in activitystreams.
2020-06-26 21:12:41 -04:00
Dessalines 15f1920b25 Federated private messages. 2020-05-05 22:06:24 -04:00
Dessalines 697c62fb64 Change local unique username constraints. 2020-04-21 09:21:29 -04:00
Dessalines 26ad37a8c0 Updating views to add apub actor_id and local columns. 2020-04-14 15:12:19 -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 4b0227c45e Change post sorting hot rank to use newest comment time. Fixes #517 2020-02-08 11:16:58 -05:00
Dessalines ecd10482a6 Add new comments views to main and community pages. Fixes #480 2020-02-07 23:05:15 -05:00
Dessalines 65a6e7731c Increasing post title length limit to 200. Fixes #515 2020-02-06 13:10:43 -05:00
Dessalines 8035976e40 Adding username and email case insensitivity uniqueness. Fixes #341 2020-02-01 20:11:12 -05:00
Dessalines 4778f198e1 Adding a materialized view for reply_view. Fixes #466 2020-01-28 23:53:19 -05:00
Dessalines 253bc3e0af Adding private messaging, and matrix user ids.
- Fixes #244
2020-01-22 16:38:16 -05:00
Dessalines 8f32b84b5a A first pass at using materialized views. 2020-01-13 20:02:02 -05:00
Dessalines 253f4aa6a1 Back to just indexes. 2020-01-11 17:30:44 -05:00
Dessalines 5f31900375 Trying some DB indexes. 2020-01-10 23:09:38 -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 f5a13717ea Adding change password and email address from user settings.
- Fixes #384
- Fixes #385
2020-01-01 15:46:14 -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 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 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 565fc0abdb Adding ability to do mod action on post creator
- Fixes #248
- Show banned on user comment and user overview. Fixes #264
2019-09-05 17:18:48 -07:00
Dessalines b50ae1dafc Showing community count on main sidebar
- Fixes #232
2019-08-28 21:28:06 -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 8c85f0cb62 Removing the placeholder admin user.
- Fixes #165
2019-06-01 15:32:06 -07:00
Dessalines 2e487214ff Reworking some UI. Adding proper trending communities with hot rank.
- Breaking out subscribed and all into radios. Fixes #142
2019-05-01 22:26:31 -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 016920aeb7 Community moderation fixes.
- Don't show banned communities on main post list. Fixes #95
- Add back in community moderation and editing. Fixes #92
2019-04-21 13:52:55 -07:00
Dessalines 93957c781e Fixing ranking algorithm. 2019-04-21 10:15:40 -07:00
Dessalines a05f53dae9 Adding negative score fix
- Fixes #84.
- Fixing unit tests.
2019-04-20 16:47:23 -07:00
Dessalines 682413613e Mostly working, before merge 2019-04-20 11:17:00 -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 a05453ab78 Merge branch 'dev' into moderation 2019-04-09 08:37:08 -07:00
Dessalines 49bf16e7d4 Adding user details / overview page.
- Fixes #19
2019-04-07 22:19:02 -07:00
Dessalines 3d4872ce10 adding migrations 2019-04-06 17:58:28 -07:00
Dessalines 58bf6c1655 Travis 2019-04-06 10:01:02 -07:00
Dessalines 38fa7969f9 Adding a front page / fetching subscribed forums.
- Adding subscribed to post view. Fixes #25
2019-04-05 12:14:54 -07:00
Dessalines 2c66d86e26 Adding subscribe to communities.
- Adding subscribe. Fixes #12. Fixes #27.
2019-04-04 23:26:38 -07:00
Dessalines f3cbe9e6ce Getting community moderators
- Getting back mods with a fetch. Fixes #28
2019-04-04 13:53:32 -07:00