* Refactor Taglines
* Include crate ts-rs dependencies when needed, move some views to account_management views
* Re export NotePerson from lemmy_api_common
* Remove unused "full" feature from lemmy_db_views_tagline
* Replace "full" feature in lemmy_api_common with "ts-rs"
* Remove newly added db_views crates and put structs in existing db_views crates
* Fix assumption that is_err always means the local site doesn't exst, which may cause things like keypairs to be overwritten
* remove use of unstable feature
* fix map_err
* exists query and transaction
* Upgrading ts-rs, and adding feature flag.
- Lets us remove all the ts-optionals on every field.
- Should speed up compilation, and this feature is only needed for
lemmy-js-client.
- Fixes#5741
* Removing ts_optional_fields from enums
* Updating translations.
* Fix tests
* Fixing translations
* Adding ts-rs feature to ts_bindings script
* Consolidating optional fields and export to one line.
* Dont export federation_queue_state
* Adding ability to make a note for a given person.
- This comes back with PersonActions.note, already on post and comment
views.
- Also adds person_actions to PersonView, so that the read person API
action can return the note.
- Fixes#2353
* Adding unit test for person_view read.
* Fixing bindings check
* Addressing PR comments
* Moving API action to person/note
* Adding migration for renaming timestamps to at
* Running format.
* Updating code to _at
* Fix replaceable schema
* Fixing scheduled tasks.
* Fixing and cleaning up api tests.
* Fixing cargo shear.
* Resolve objects as part of search api call (fixes#5740)
* clippy
* use search response, cleanup test
* update api tests
* fix error handling
* another fix
* Specify Rust version 1.81
* fix ci
* Update extism and other deps
* Extism code changes
* main branch
* fix compile, no default features
* enable default
* 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>