summaryrefslogtreecommitdiffstats
path: root/server/src/api
AgeCommit message (Collapse)Author
2020-07-13Adding a community_name option to GetPosts /post/list . Fixes #800 (#942)Dessalines
2020-07-10Forbid users to use empty titles for posts (#930)Tony Antonov
- Add a regex that checks if string contains anything but whitespace - Check for whitespace-only titles on post creation and edit - Trim whitespace from titles before saving - Add frontend validation to title
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-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-22Edit community name validation, translations #823Ernest
2020-06-20Community name validationErnest
2020-06-10Adding delete picture via pict-rs delete tokens. Fixes #505Dessalines
2020-06-10Adding pictrs thumbnail caching for urls and embeds.Dessalines
2020-06-09Merge branch 'master' into federationFelix Ableitner
2020-05-30more fixesFelix Ableitner
2020-05-28make comments work (more or less)Felix 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-06Merge branch 'federated_private_messages' into federationDessalines
2020-05-05Federated private messages.Dessalines
2020-05-05Federate community category and nsfwFelix
2020-05-05Federate nsfw/locked info for postsFelix
2020-05-04Renaming ignore to unfollow in followable trait.Dessalines
2020-05-03Adding undo follow community.Dessalines
2020-05-03Add federated comment and post undo like.Dessalines
2020-05-03Adding federated mod remove actions.Dessalines
2020-05-01Add undos for delete community, post, and comment.Dessalines
2020-05-01Adding federated community, comment, and post deletes.Dessalines
- Unit tests added too. - No undeletes working yet.
2020-04-29Address comments, implement delete for posts and commentsFelix
2020-04-28Implement deleting communitiesFelix
2020-04-28Adding federated post and comment likes.Dessalines
2020-04-271/3rd done with post likesDessalines
2020-04-27Adding activity table inserts.Dessalines
2020-04-27Lots of additions to federation.Dessalines
- Added a shared inbox. - Added federated comments, comment updates, and tests. - Abstracted ap object sends into a common trait.
2020-04-26Making a trait function for follow and accept.Dessalines
2020-04-24Some fed fixes.Dessalines
2020-04-21Merge branch 'master' into merge_master_2Dessalines
2020-04-21Adding web::blocks to routes.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-17Implement search for activitypub IDsFelix
2020-04-14Front end federation names and links for users, posts, and communities.Dessalines
2020-04-14Merge branch 'dev' into federationDessalines