Commit Graph

782 Commits (c239b9af83fd948d2c36fa5d38ea9b5f9d9353cf)

Author SHA1 Message Date
nutomic 3da47352be Remove usage of Option::unwrap() in activitypub code (#80)
Remove remaining usages of unwrap() from activitypub code

Remove most usage of Option::unwrap() from activitypub code

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/80
4 years ago
Dessalines 0acd0bba3a Version v0.7.48 4 years ago
ernestwisniewski 7bc560b2ec
Community post count fix (#1062)
* User details ui fix

* User details ui fix

* Lang bio, merge

* Community count posts bug #1060
4 years ago
Dessalines 221db1bd1b Add email overwrite on user settings save. Fixes #1069
- Also add get_user_secure to other locations.
4 years ago
Dessalines 52ac4f70e1 Merge branch 'feature/add-user-secure' of https://github.com/eiknat/lemmy into eiknat-feature/add-user-secure 4 years ago
Dessalines 5e9ffde0b1 Version v0.7.47 4 years ago
Dessalines 71a0dd4cc9 Version v0.7.46 4 years ago
Dessalines 992b3ca95b Some UI fixes. 4 years ago
eiknat 492e8ad655 user_view: add fn to return sanitized fields 4 years ago
Dessalines ddefc06fbc Version v0.7.44 4 years ago
Felix Ableitner 0cc49e6ca9 Merge branch 'main' into federation-authorisation 4 years ago
Felix Ableitner 9b7be1afb6 Some apub fixes 4 years ago
Dessalines ce8622b9cd Version v0.7.43 4 years ago
Dessalines 3e5d5abd53 Version v0.7.42 4 years ago
Felix Ableitner 313f315896 Various adjustments after review 4 years ago
Felix Ableitner cc2c7db9fe Add security checks and slur checks for activitypub inbox 4 years ago
Dessalines e645386842 Version v0.7.41 4 years ago
Dessalines 048271f59b Remove allowed thumbnail sizes for now. 4 years ago
Dessalines 88bd368660 Version v0.7.40 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
nutomic c34fffc2c4 Proxy pictrs requests through Lemmy (fixes #371) (#77)
fix check_only value for image rate limit

Fix image rate limit

Add rate limit for image uploads

Proxy pictrs requests through Lemmy (fixes #371)

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/77
4 years ago
Felix Ableitner 81d4922740 Instance shouldnt send Announce activities to itself 4 years ago
Felix Ableitner 233aa34d54 Verify ID of received apub objects against domain allowlist etc 4 years ago
Dessalines e9e1497830
Add bio federation. (#1052)
* Re-organizing federation tests. #746 #1040

* Adding federation support for user bios. Fixes #992
4 years ago
Dessalines e336e5bcc0
Re-organizing federation tests. #746 #1040 (#1047)
* Re-organizing federation tests. #746 #1040

* Add more checks in inbox, plus some refactoring (#76)

Merge branch 'main' into more-inbox-permissions

Move check_community_ban() into helper function

Move slur check into helper functions

Move Claims::decode and site ban check into helper function

Note: this changes behaviour in that site ban is checked in more
places now. we could easily add a boolean parameter
check_for_site_ban to get the previous behaviour back

Rewrite user_inbox and community_inbox in the same way as shared_inbox

Add check against instance allowlist etc in shared_inbox

Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/76

* Adding verbose to test results.

Co-authored-by: nutomic <nutomic@noreply.yerbamate.dev>
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
4 years ago
Dessalines 97d2584a3b
Update deps (#1049) 4 years ago
Dessalines ce874e183b Version v0.7.39 4 years ago
Dessalines 5b23595710 Version v0.7.38 4 years ago
Dessalines dee5c302a8 Version v0.7.37 4 years ago
Dessalines 1a0f70450c Version v0.7.36 4 years ago
Felix Ableitner e4d5614f3f Merge remote-tracking branch 'github/main' into main 4 years ago
andor0 b6411aba7a
Migrate from failure to anyhow and thiserror (#1042)
* Migrate from failure to anyhow and thiserror

* Replace 'format_err!' to 'anyhow!'
4 years ago
Felix Ableitner 9a004c4535 Update activitystreams to 0.7.0-alpha.3 (from crates.io) 4 years ago
Azriel Lector 1acb51105a
Add user bios (#1043)
* Add user bios

* Version v0.7.35

* Add domain name change instructions to docs. (#1044)

* Add domain name change instructions to docs.

* Changing docker execs to docker-compose execs

* Set maxLength to user bio and render as md

* Fix bio updating after SaveUserSetting

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
4 years ago
Dessalines dc4ac6345c Version v0.7.35 4 years ago
Dessalines f0ce7b0e0f Merge remote-tracking branch 'yerba/main' into main 4 years ago
Dessalines 25e61b276a Version v0.7.34 4 years ago
Felix Ableitner 678e1fa927 Add community outbox (ref #1018) 4 years ago
Felix Ableitner 705e74f4b9 Federate sticky flag (ref #1018) 4 years ago
Felix Ableitner cee72065e9 Merge branch 'main' into inbox-refactoring 4 years ago
Dessalines 04cb1e0161 Version v0.7.33 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
Felix Ableitner 8ad4378960 Disable ID domain check in FromApub until we figure it out properly 4 years ago
Felix Ableitner a85873d294 Take correct community uri in shared_inbox, rename fetch_remote* methods 4 years ago
Dessalines 5dd0efb280 Version v0.7.32 4 years ago
Dessalines 52b221e3c9 Version v0.7.31 4 years ago
Dessalines ced3cbde73 Merge branch 'main' into inbox-refactoring-dessalines 4 years ago
Felix Ableitner 494fcfdb8f Add helper function to generate proper activity IDs 4 years ago
Dessalines e605d58888 Merge branch 'main' into inbox-refactoring-merge 4 years ago
Dessalines 1ed63e99d9 Fix post thumbnail_url to use full urls. Fixes #632 4 years ago
Felix Ableitner 1ed7c59491 Refactor inbox, simplify and split into multiple files 4 years ago
Dessalines 6e4599411b
Adding inferno-helmet to fix page titles. Fixes #1028 (#1030) 4 years ago
Dessalines c066915b8e
Federate sticky flag dessalines (#1021)
* Federate sticky flag (ref #1018)

* Adding tests for federated sticky and lock.

* Changing test to make sure it returns the correct locked error.

Co-authored-by: Felix Ableitner <me@nutomic.com>
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 617d636432 Version v0.7.30 4 years ago
Dessalines 0ff9af5ba5 Version v0.7.29 4 years ago
Riley ceaa485f06
Update http sigs dependency (#1022) 4 years ago
Dessalines edfd10262f Version v0.7.28 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 db0d213710 Version v0.7.26 4 years ago
Felix Ableitner 3f00140f5d Use activitystreams from yerbamate.dev mirror (fixes #1012) 4 years ago
Dessalines 5e5063cbdd Adding some helper functions. 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
Dessalines ca7d2feedb Some GetUserDetails cleanup. 4 years ago
Dessalines 9bc6698f58 Added community delete and remove. 4 years ago
Dessalines a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 4 years ago
Dessalines 0a28ffb9c4 Private message delete and read extracted. 4 years ago
Dessalines 2ff7acf207 Moving dupe checking to before new actor_id generation. 4 years ago
Dessalines 87202b4915 Fixing duplicate actor_id for community and user. Fixes #957 4 years ago
Dessalines b03a2d7995 Ran cargo fmt. 4 years ago
Dessalines 3342a6a910 Version v0.7.25 4 years ago
eiknat 03758a4f92
validate post URLs on the backend (#990)
* added serverside url validation

* api.post: use if let instead of is_some

also add "invalid_url" to en.json

Co-authored-by: John Doe <dhas8m@protonmail.com>
4 years ago
nutomic 77a2a5eb01 Update activitystreams library to latest version (#71)
Merge branch 'main' into more-upgrade-apub-3

Update activitystreams library to latest version

Remove remaining usages of old activitystreams library

Migrate community inbox and user inbox

Migrate private message

Migrate post

Migrate community activities

Migrate extensions to new activitystreams library

Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/71
4 years ago
Dessalines 2a206e1b4d Version v0.7.24 4 years ago
Dessalines 1e30fcf235 Version v0.7.23 4 years ago
Felix Ableitner 2d4c41d2be Convert comments to new apub lib (including comment activities) 4 years ago
Felix Ableitner ef8118f40f migrate post to new apub lib 4 years ago
Dessalines f69f044aaa Version v0.7.22 4 years ago
Dessalines 9f36fd50b4
GetSite fixes. Fixes #975 (#978) 4 years ago
Dessalines fc15276c10
Don't allow duplicate community names in API. #957 (#974) 4 years ago
Dessalines 78cb306c07
Don't allow community name editing. Fixes #964 (#973) 4 years ago
Dessalines 70f15ffd6f Version v0.7.21 4 years ago
Dessalines cc0ae6343c
Fixing user mention reading. (#968) 4 years ago
Dessalines 5ccf81349e Version v0.7.20 4 years ago
ryexandra 29037b4995
Security/fix permission bugs (#966)
* 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>
4 years ago
Dessalines 52983907c4 Version v0.7.19 4 years ago
Dessalines abe7a41f58 Version v0.7.18 4 years ago
Dessalines ac56b57faa Merge branch 'fix-migrate-apub-lib' 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 ea0881f87e Using community-link instead. 4 years ago
Dessalines 1b7a4ac090 Merge branch 'add_post_title_to_comments_view' of https://github.com/makigi-io/makigi into makigi-io-add_post_title_to_comments_view 4 years ago
Felix Ableitner bb3e29e5c4 Make reads from activitypub objects immutable 4 years ago
Riley 8f745b80d3
Wrap each inbox route individually (#954) 4 years ago
Dessalines 7556f8615f
Adding a community_name option to GetPosts /post/list . Fixes #800 (#942) 4 years ago