Commit Graph

111 Commits (53d449d5d708bb47028fcfd928a3552c86d3370b)

Author SHA1 Message Date
Dessalines c323ab5275
Added option to remove banned user data (posts, comments, communities) (#1093)
- Works for both a site-ban, and a community ban.
- Fixes #557
4 years ago
Felix Ableitner 0cc49e6ca9 Merge branch 'main' into federation-authorisation 4 years ago
Felix Ableitner 313f315896 Various adjustments after review 4 years ago
Dessalines 464ea862b1
Preferred usernames, banners and icons. (#1055)
* Re-organizing federation tests. #746 #1040

* Adding federation support for user bios. Fixes #992

* Adding icons, banners, and preferred usernames.

- Added optional community icons, and community banners.
- Added user banners.
- Added Site icon and banner, with custom favicon.
- Set up preferred usernames. Fixes #1017
- Added an additional post sort: Active
  - Hot rank now uses the published time.
  - Active uses the most recent comment time, and is default.
- DB Migration was required to add all these fields to the views.
- Added transfercommunity helper function.
- Removed title column from communities page.
- Abstracted an image-upload-form.tsx, and a banner-icon-header.tsx
- Fixes #899

* Some navbar fixes.

* Fixing css

* Some fixes.

- Showing correct user icon and banner after save without page reload.
- Abstracting diesel update overwrite.
- Adding some docs.

* Adding @ when a user doesn't have a preferred username.
4 years ago
Dessalines 7938e8f5c8 Some front end fixes. 4 years ago
Dessalines e31f74c3ad
Add domain name change instructions to docs. (#1044)
* Add domain name change instructions to docs.

* Changing docker execs to docker-compose execs
4 years ago
Dessalines 49bd28e2d4
Adding visual captchas for register and login. (#1027)
* Adding visual captchas for register and login.

* Adding audio wav file for Captcha using espeak.

* Lots of captcha fixes.

- Removed login captchas.
- Added settings to disable captchas, and change difficulty.
- Captchas can only be checked / used once, front end gives a new one on
  failure.
- Added front end button for regenerating captcha.
- Added a disabled / pause button audio playing.

* Some more fixes.
4 years ago
Dessalines d1342afe93
Remove extra jwt claims (for user settings) (#1025)
* Remove extra jwt claims (for user settings)

- The JWT token only contains the issuer, and your user id now.
- Now only a page refresh is necessary to pick up your settings on all
  clients, including theme, language, etc.
- GetSiteResponse now gives you your user and settings if logged in.
- Fixes #773

* Remove extra comment line, I tested nsfw

* Adding a todo to add a User_::readSafe()
4 years ago
Dessalines 01cc8654e2
Fixing config_file env to use defaults instead (since its required). (#970)
* Fixing config_file env to use defaults instead (since its required). Fixes #764

* Changing the read / write to the custom config file one

* Adding a config note.
4 years ago
Dessalines 59da2976ab Some more API cleanup.
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
4 years ago
Dessalines b6a6d52a92 Merge branch 'main' into api_edit_separation 4 years ago
Dessalines f81a7ad9ab Adding form_id to comment creates and edits.
- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
  and know which comment they submitted, is the one they're getting
  back.
- This gets rid of all the weird complicated logic in handleFinished(),
  and should stop the comment forms getting cleared once and for all.
4 years ago
Dessalines 4b6a762a56 Added an is_mod_or_admin function to Community 4 years ago
Dessalines 55ce7b1339
Adding version to GetSite. Fixes #1001 (#1002)
* Adding version to GetSite. Fixes #1001

* Removing version.ts file
4 years ago
Dessalines 2eac037408 Adding post delete, remove, lock, and sticky. 4 years ago
Dessalines fd96dfdb5e Added comment delete, remove, read. 4 years ago
Coma Grayce cd0f1a8eb2
Ooops. 4 years ago
Coma Grayce 6fbfb69ee4
Add sub and sup Markdown tags. 4 years ago
Dessalines 613b462662 Merge branch 'main' into api_edit_separation 4 years ago
Dessalines 9bc6698f58 Added community delete and remove. 4 years ago
Dessalines a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 4 years ago
jcfrancisco 1a421e96d7
📝 Add macOS-specific instructions for local development. (#996)
* 📝 Add macOS-specific instructions for local development.

* 📝 Remove extra 'git' package installation instruction
4 years ago
Dessalines 0a28ffb9c4 Private message delete and read extracted. 4 years ago
Dessalines 78cb306c07
Don't allow community name editing. Fixes #964 (#973) 4 years ago
Dessalines 2f5e191b2d Changing references from master to main. #820 4 years ago
Dessalines e5d3e3a9c3
Adding a configurable config location through an env var. (#960)
* 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
4 years ago
Dessalines 7556f8615f
Adding a community_name option to GetPosts /post/list . Fixes #800 (#942) 4 years ago
Dessalines 181374d2cc Fixing travis, adding a test.sh script. 4 years ago
nutomic 80aef61aed Split code into cargo workspaces (#67)
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
4 years ago
Felix Ableitner aaa536b454 Merge branch 'improve-council-rules' 4 years ago
Felix Ableitner 6122fb9f73 Improve council rules 4 years ago
Dessalines b9d16d7cd0 Fixing some typos. 4 years ago
Dessalines 8aa9cc11eb
Fixing federation testing docs. Fixes #878 (#879)
* Fixing federation testing docs. Fixes #878

* Removing extra clone.
4 years ago
Dessalines be6e95e564 Merge remote-tracking branch 'yerba/master' 4 years ago
Dessalines 997e373bf9 Adding ansible comment line. 4 years ago
Dessalines c1b3711090 Adding line for council admins. 4 years ago
Dessalines e517de5480 Merge branch 'master' into federation 4 years ago
Dessalines bd3051e058 Merge branch 'master' into improve-config 4 years ago
Felix Ableitner afe3b6b2fc Add docs for testing (fixes #841) 4 years ago
Felix Ableitner 0c89de8065 Fix previous comment, also fix link in docs 4 years ago
fruechtchen a774e0a2a1 update lemmy council memberlist 4 years ago
Dessalines dc94e58cbf Merge branch 'master' into federation_merge_from_master_2 4 years ago
Dessalines 790b944031 Changing to new lemmynet repo location. 4 years ago
Dessalines 84ed1ecdfd Fixing docker install instructions for pictshare. #831 4 years ago
Felix Ableitner 325ed2ec3b Rename "instance_whitelist" config option to "allowed_instances" 4 years ago
Felix Ableitner 5a6f39dae4 Various build optimizations 4 years ago
Felix Ableitner de0fb631df Improve documentation for local development 4 years ago
Felix Ableitner 0f1a8ec928 Merge branch 'master' into federation 4 years ago
Lorenz Schmidt a3a55dd195
Indicate unstable API in README and mdbook (#781) 4 years ago
Dessalines 7f58ea2725 Updating federation dev branch. 4 years ago