* Move EditCommunity
* Move more community stuff
* Finish moving community related structs to db views
* Move comment structs to db views
* Move person structs to db views
* Forgot to add file to staged changes
* Move custom emoji structs to db views
* Move post structs to db views
* Move private message structs to db views
* Finish moving structs out of lemmy_api_common
* Re-export post, comment, and community structs from lemmy_api_common
* Export person structs from lemmy_api_common
* Re-export custom emoji structs
* Re-export private message structs
* Re-export federation, media, moderation, search, and site structs
* Re-export most of everything
* Handle re-exports that weren't already covered (except errors)
* Add error types, reorganize some more
* Another once over to make sure I missed nothing
* Finish re-arranging re-exports for draft PR
* Update email translations submodule
* Ensure that exporting typescript bindings works
* Run taplo fmt and cargo fmt
* Move API structs into relevantly grouped crates instead of having 1 crate per struct
* Fix compilation error
* Fix broken cargo shear CI step
* fix SuccessResponse::default
* set publish false
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
* Adding proper NSFW filtering to search, based on user settings.
- This works just like `list_posts`, and can be overridden via the API
call.
- Fixes#3014
- Fixes#5528
* Filter out comments and posts in NSFW communities.
* Throw error if the removed code_migrations.rs needed to run but didn't
* support postgresql 15
* improve error message
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* add calls to submit_activity and use SiteOrCommunity
* add send_activity imports
* use separate CreateReportToSite and SendResolveReportToSite variants
* fix api compile errors
* allow apub Report struct to represent community report
* change argument types of Report::new, Report::send, and report_inboxes
* impl Object for ReportableObjects
* impl Actor for SiteOrCommunity
* change return types of ReportObject::dereference and ReportObject::object_id
* Add verify_person_in_site_or_community
* replace Report::community with Report::recipient to return either site or community, and add SiteOrCommunity::local_community
* fix Report::receive
* fix ResolveReport::send
* fix ResolveReport
* fix match_outgoing_activities
* replace recipient with receiver
* lint
* update cargo.toml files
* start removing new custom enums
* Revert "start removing new custom enums"
This reverts commit 8208c8a8b1.
* remove new trait impls on enums
* change reportableobjects to type alias that uses either
* fix fetcher::report
* find and replace reportableobjects variant names
* delete crates/utils/translations
* remove uses of custom siteorcommunity enum
* clippy
* dont use separate module for reportableobjects
* remove ResolveReport::reciever
* replace match in activity_lists with Report::community
* combine variants for community and site in SendActivityData enum
* add reportCommunity function to shared.ts
* fix rust errors
* lint
* change the condition for community reports when listing unresolved reports
* update lemmy-js-client
* fix pnpm-lock.yaml
* api test
* use same null check that's used elsewhere
* federate report activities to report creator's instance
* Apply suggestions from code review
Co-authored-by: Nutomic <me@nutomic.com>
* remove report_remote_inboxes
* remove Report::receiver
* remove verify_admin_action
* move verify_mod_or_admin_action
* always hide reports of remote communities
* refactor local_community
* remove unconditional hiding of reports of remote communities
---------
Co-authored-by: Nutomic <me@nutomic.com>
* Deleting local image only if pict-rs client returned OK (fixes#5671)
* Adding validation of image, and making some refactoring
* fmt fix
* removed unnecessary validations
* Increase max query duration in PostView speed_check
* TypeScript type CommunityIdQuery for community icon/banner uploads (#5679)
Co-authored-by: Nutomic <me@nutomic.com>
* Add list of local user accounts for admins (fixes#4419) (#5668)
* Add list of local user accounts for admins (fixes#4419)
* add api route
* Merge list_banned_users into admin_list_users
* revert sql
* Optional columns are handled correctly in insert and update forms (ref #5672) (#5675)
* Optional columns are handled correctly in insert and update forms (ref #5672)
* Linter fix
* Downscale proxied thumbnails (fixes#5673) (#5674)
* Downscale proxied thumbnails (fixes#5673)
* add param
* fix tests
* Remove some api_common dependencies (ref #5642) (#5678)
* Adding validation of image, and making some refactoring
* fmt fix
* removed unnecessary validations
---------
Co-authored-by: aboitsov <anton.boitsov@zalando.fi>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Co-authored-by: matc-pub <161147791+matc-pub@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
* Migrations before column fixes
* Change local_image to reference person_id, to track thumbnail creators.
- Fixes#5564
* Fixing API tests.
* Increase the post query duration time. #5661
* Adding thumbnail_and_post_id column
* Forgot ts-optional
* Fixing post spec tests.
* Try using promise.allSettled to ignore errors.
* Using consistent pictrs api key.
* Dont fetch thumbnails for user API.
* Dont delete thumbnails for user deletion.
* Dont filter out thumbnail images when fetching or deleting.
* Update crates/api_common/src/utils.rs
Co-authored-by: Richard Schwab <gitrichardschwab-7a2qxq42kj@central-intelligence.agency>
* Addressing PR comments
* Add comment.
* Rename to thumbnail_for_post_id
* Addressing PR comments
---------
Co-authored-by: Richard Schwab <gitrichardschwab-7a2qxq42kj@central-intelligence.agency>
* Move db_views crates into subfolder
* fix tests
* try fix ci
* absolute path
* Move db_views crates into subfolder
* lemmy_federate should not depend on lemmy_apub (ref #5614)
* taplo
* fix ci
* add comment
* use value