summaryrefslogtreecommitdiffstats
path: root/server
AgeCommit message (Collapse)Author
2020-07-14Version v0.7.21Dessalines
2020-07-14Fixing user mention reading. (#968)Dessalines
2020-07-14Version v0.7.20Dessalines
2020-07-14Security/fix permission bugs (#966)ryexandra
* secure the `EditPost` API endpoint * Check user is moderator in BanFromCommunity * secure the `EditComment` API endpoint * pass orig `read` prob when not explicitly updating it. * Block random users from adding mods. * use cleaner logic from `EditPost` * prevent editing a community by a mod from transfering ownership to them * secure `read` action in `EditPrivateMessage` * Add check in UserMention * only let the indended recipient mark as read * simplify booleans to satisfy clippy * requested changes + cargo +nightly fmt * fix to pass federation tests for deleting comments and posts Co-authored-by: chiminh <chiminh.tutanota.com> Co-authored-by: Hex Bear <buildadangtrain@protonmail.com>
2020-07-13Version v0.7.19Dessalines
2020-07-13Version v0.7.18Dessalines
2020-07-13Merge branch 'fix-migrate-apub-lib'Dessalines
2020-07-13Adding a configurable config location through an env var. (#960)Dessalines
* Adding a configurable config location through an env var. - Its `LEMMY_CONFIG_LOCATION` - Fixes #764 * Using a static for CONFIG_FILE again. * Make clippy happy
2020-07-13Using community-link instead.Dessalines
2020-07-13Merge branch 'add_post_title_to_comments_view' of ↵Dessalines
https://github.com/makigi-io/makigi into makigi-io-add_post_title_to_comments_view
2020-07-13Make reads from activitypub objects immutableFelix Ableitner
2020-07-13Wrap each inbox route individually (#954)Riley
2020-07-13Adding a community_name option to GetPosts /post/list . Fixes #800 (#942)Dessalines
2020-07-13Fixing admin and mod sort order. Fixes #939 (#941)Dessalines
2020-07-13Merge remote-tracking branch 'upstream/master' into ↵Ernest
add_post_title_to_comments_view
2020-07-13Add post title to user comments inbox view, comment_view, user_mention_viewErnest
2020-07-12Version v0.7.17Dessalines
2020-07-12Migration fixErnest
2020-07-12Add post title to comments view #948Ernest
2020-07-11Version v0.7.16Dessalines
2020-07-10Version v0.7.15Dessalines
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-10Fixing travis, adding a test.sh script.Dessalines
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-09Version v0.7.14Dessalines
2020-07-09Remove button for avatars. Fixes #755 (#924)Dessalines
2020-07-09A few cake day fixes. #916Dessalines
2020-07-09Create new migration to add `creator_published` field to the `post_view` and ↵Filip785
`comment_view`
2020-07-08Merge remote-tracking branch 'upstream/master' into cake-dayFilip785
2020-07-08Merge branch 'master' into migrate-apub-libDessalines
2020-07-08Migrate user and group to new activitystreams libraryFelix Ableitner
2020-07-08Merge remote-tracking branch 'upstream/master' into cake-dayFilip785
2020-07-08Version v0.7.13Dessalines
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-08Add cake day display in user page & posts/comments #682Filip785
2020-07-07Version v0.7.12Dessalines
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-06Revert "Verify activitypub payload digests (#885)"Felix Ableitner
This reverts commit 916592944af8e32f2044c9acf0d57eb7991427a5.
2020-07-04Version v0.7.11Dessalines
2020-07-04Version v0.7.10Dessalines
2020-07-03Version v0.7.9Dessalines
2020-07-03Verify activitypub payload digests (#885)Riley
2020-07-01Version v0.7.8Dessalines
2020-07-01Version v0.7.7Dessalines
2020-07-01Adding IP to the rate limit request line. (#882)Dessalines
* Adding IP to the rate limit request line. * Adding IP to the rate limit request line.
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-07-01Version v0.7.6Dessalines
2020-07-01Fixing ban user bug. Fixes #876Dessalines