summaryrefslogtreecommitdiffstats
path: root/server/src/lib.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-08Fixes regression from #848Pierce
The api for actix_web::dev::ConnectionInfo changed from 2.0.0 to 3.0.0. The equivalent of 2.0.0's remote() in 3.0.0 is realip_remote_addr(), not remote_addr(). https://docs.rs/actix-web/2.0.0/actix_web/dev/struct.ConnectionInfo.html#method.remote https://docs.rs/actix-web/3.0.0-alpha.3/actix_web/dev/struct.ConnectionInfo.html#method.realip_remote_addr
2020-07-01Adding \b before a slur.Dessalines
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-06-28Slur additions.Dessalines
2020-06-25Switching back to isahc.Dessalines
2020-06-23Merge branch 'master' into federation_merge_from_master_2Dessalines
2020-06-22Merge branch 'master' of https://github.com/makigi-io/makigi into ↵Dessalines
makigi-io-master
2020-06-20Community name validationErnest
2020-06-12Merge branch 'master' into use-pictrs-1Dessalines
2020-06-10Adding pictrs thumbnail caching for urls and embeds.Dessalines
2020-06-10Replace isahc with attohttpc to remove curl (fixes #798)Felix Ableitner
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-16Merge branch 'yerba_rework-imports' into federationDessalines
2020-05-16Rework importsFelix
2020-05-15Federated mentions. Fixes #681 (#717)Dessalines
* Federated mentions. Fixes #681 * Changing some todos, adding comments.
2020-05-12Changing image_content_type function to Result. (#711)Dessalines
* Changing image_content_type function to Result. * Changing image to image/
2020-05-11Pictshare only cache image content types. Fixes #709Dessalines
2020-05-11Removing 2nd match.Dessalines
2020-05-07Removed hardcoded thumbnail valueAndre Vallestero
2020-05-06Removed debug lineAndre Vallestero
2020-05-06Thumbnail generation for iframely incompatible sourcesAndre Vallestero
2020-04-21Merge branch 'master' into federation_merge_from_master_1Dessalines
2020-04-20Use get_ip in ratelimit 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-14Merge branch 'dev' into federationDessalines
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-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-04-02Merge branch 'master' into federationDessalines
2020-03-28Changing markdown parser to comrak. Moving crate imports to lib.rs.Dessalines
2020-03-28Merge branch 'master' into federationDessalines
2020-03-18Updating chttp to isahc.Dessalines
2020-03-18Merge branch 'master' into federationFelix Ableitner
2020-03-14Implemented basics for post federation, plus a bunch of other stuffFelix Ableitner
2020-03-13Adding full logging.Dessalines
2020-03-12Merge branch 'master' into federationFelix Ableitner
2020-03-12updated to activitystreams 0.4.0-alpha.3Felix
2020-03-09Move volumes into subfolder (ref #474) (#23)nutomic
Change ports and container names Move volumes into subfolder (ref #474) Merge pull request #587 from StaticallyTypedRice/patch-2 Clarify that content violating this code of conduct will likely be removed. Clarify that content violating this code of conduct will likely be removed. Lemmy has a general policy of removing any content that violates the rules whenever possible, which is typically a good thing, and I felt it important to mention that in the code of conduct. Co-authored-by: Felix <me@nutomic.com> Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com>
2020-03-07Iframely and pictshare backend mostly done.Dessalines
2020-03-05Revert "pull in activitypub library"Felix
This reverts commit a52a954eb4b79237941fc21b6989856d4e3d44a3.
2020-02-29pull in activitypub libraryFelix
2020-02-03Integrate email relay in Ansible setupFelix
2020-02-02Returning specific slurs from slur filter on failure. Fixes #463Dessalines
2020-01-22Adding correct hello_name to mail.Dessalines
2020-01-20Updating slur filter.Dessalines
2019-12-31Use actix config to handle routes in seperate folders (#378)Felix Ableitner
2019-12-29Adding case insensitivity to slur filter.Dessalines
- Fixes #388
2019-12-28Config fixes.Dessalines
- Adding front_end_dir to settings. - Adding unit test for PasswordResetRequest encryption. - Readme points to lemmy.hjson - Fixing docker prod, dev, and ansible builds. - Removing redundant env files, as all config is now in a single file. - Some formatting fixes.