summaryrefslogtreecommitdiffstats
path: root/server/src/api/user.rs
AgeCommit message (Collapse)Author
2020-07-10Split code into cargo workspaces (#67)nutomic
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-09Remove button for avatars. Fixes #755 (#924)Dessalines
2020-07-07Remove materialized views. (#908)Dessalines
* 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-01Merge branch 'master' into federationDessalines
2020-07-01Federation async (#848)Riley
* Asyncify more * I guess these changed * Clean PR a bit * Convert more away from failure error * config changes for testing federation * It was DNS So actix-web's client relies on TRust DNS Resolver to figure out where to send data, but TRust DNS Resolver seems to not play nice with docker, which expressed itself as not resolving the name to an IP address _the first time_ when making a request. The fix was literally to make the request again (which I limited to 3 times total, and not exceeding the request timeout in total) * Only retry for connecterror Since TRust DNS Resolver was causing ConnectError::Timeout, this change limits the retry to only this error, returning immediately for any other error * Use http sig norm 0.4.0-alpha for actix-web 3.0 support * Blocking function, retry http requests * cargo +nightly fmt * Only create one pictrs dir * Don't yarn build * cargo +nightly fmt
2020-07-01Fixing ban user bug. Fixes #876Dessalines
2020-06-26Some fixes to federation.Dessalines
- 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-09Merge branch 'master' into federationFelix Ableitner
2020-05-28Validate register usernames on the back-end. Fixes #716 (#750)Dessalines
* Validate register usernames on the back-end. Fixes #716 * Changing name to is_valid_username
2020-05-16Rework importsFelix
2020-05-05Federated private messages.Dessalines
2020-04-24Some fed fixes.Dessalines
2020-04-21Merge branch 'master' into federation_merge_from_master_1Dessalines
2020-04-19Change RateLimit to act as a middlewareasonix
2020-04-19Adding websocket notification system.Dessalines
- HTTP and APUB clients can now send live updating messages to websocket clients - Rate limiting now affects both HTTP and websockets - Rate limiting / Websocket logic is now moved into the API Perform functions. - TODO This broke getting current online users, but that will have to wait for the perform trait to be made async. - Fixes #446
2020-04-19Simplify signing codeFelix
2020-04-18Add http signature to outgoing apub requestsFelix
2020-04-11Adding live reloading of config.hjson changes through UI.Dessalines
- https://stackoverflow.com/questions/61159698/update-re-initialize-a-var-defined-in-lazy-static/61161271#61161271 - https://stackoverflow.com/questions/29654927/how-do-i-assign-a-string-to-a-mutable-static-variable/47181804#47181804
2020-04-07Store remote communities/posts in db, federate posts!Felix Ableitner
2020-04-07Removing community name unique constraint. Removing useless fedi_name column ↵Dessalines
from user_table.
2020-04-03Adding post and comment ap_id columns.Dessalines
2020-04-03Federation DB Changes.Dessalines
- 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-03-29Automatic instance setup based on config variables (fixes #404)Felix
2020-03-13Adding full logging.Dessalines
2020-03-07Iframely and pictshare backend mostly done.Dessalines
2020-03-05Remove email from GetUserDetails when not same user. Fixes #579Dessalines
2020-02-02Returning specific slurs from slur filter on failure. Fixes #463Dessalines
2020-01-31Starting to work on user message scope.Dessalines
2020-01-23Done merging http-api and private_messageDessalines
2020-01-22Adding private messaging, and matrix user ids.Dessalines
- Fixes #244
2020-01-18working!Felix
2020-01-17Fixing error when email already exists. Fixes #427Dessalines
2020-01-12Trying to add r2d2 connection pooling to websockets.Dessalines
2020-01-02Adding show_avatar user setting, and option to send notifications to inbox.Dessalines
- Fixes #254 - Fixes #394
2020-01-02Apply changes suggested by cargo clippy (fixes #395)Felix Ableitner
2020-01-01Adding change password and email address from user settings.Dessalines
- Fixes #384 - Fixes #385
2019-12-29Adding user avatars / icons. Requires pictshare.Dessalines
- Fixes #188
2019-12-28Fixing non-existent user profile viewing.Dessalines
- Fixes #381
2019-12-27Implement config (fixes #351)Felix Ableitner
2019-12-11Adding some site oriented settings.Dessalines
- 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-11Introduce the "MaybeOptional" trait.Lyra
This trait is a generic type that allows us to get an Option from any type and from another option. It can be used to remove the ugly "do_something", "do_something_optional" that we previously had.
2019-12-09Switching to shorthands for rust params.Dessalines
2019-12-09Adding custom language setting.Dessalines
- Fixes #319
2019-12-08Use builder pattern for viewsDessalines
- Fixes #360
2019-12-07show_nsfw is now default for postquery.Dessalines
2019-12-07Add default options for all parameters and move them out of the constructor. ↵Lyra
Rename structure to PostQueryBuilder
2019-12-07Use a dedicated structure in order to search postsLyra
2019-11-02Fixing ansible build, and email link.Dessalines
2019-11-01Running cargo fmt.Dessalines
2019-11-01Password reset mostly working.Dessalines