Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Remove creator from SiteView and Site parameters #38

Merged
merged 2 commits into from
Apr 30, 2022

Conversation

LouisMarotta
Copy link

@LouisMarotta LouisMarotta commented Apr 19, 2022

Seems like the creator parameter have been removed from Site and SiteView (It seems to have been replaced by admins). Just setting the variable as nullable makes the "Add Instance" function in Lemmur work again.

@LouisMarotta LouisMarotta marked this pull request as ready for review April 19, 2022 15:59
This was referenced Apr 20, 2022
Copy link
Collaborator

@shilangyu shilangyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I am now updating the API client and Lemmur to work again with the newest API changes. Just one small correction. Also, you will need to rebase.

Edit: all good, will rebase and merge, thanks!

@@ -65,7 +65,6 @@ class SiteView with _$SiteView {
@JsonSerializable(fieldRename: FieldRename.snake)
const factory SiteView({
required Site site,
required PersonSafe creator,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually... It was removed, but not updated in the TS api client! Nice catch! https://github.com/LemmyNet/lemmy/blob/dd5835fb6ee210af78ba876bf3e9f37ea1db521b/crates/db_views/src/site_view.rs#L10

Will send a PR to the TS repo

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shilangyu shilangyu merged commit 0d10599 into LemmurOrg:master Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants