Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FeaturePost support #88

Merged
merged 2 commits into from
Dec 11, 2022
Merged

Conversation

makotech222
Copy link
Contributor

id: number;
mod_person_id: number;
post_id: number;
@Transform(({ value }) => toOption(value), { toClassOnly: true })
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
@Expose()
stickied: Option<boolean>;
featured: Option<boolean>;
Copy link
Member

Choose a reason for hiding this comment

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

Hrm.. this doesn't seem to make much sense for it to be optional. Better check the back end. Also I'll wait on merging cause the back-end still needs the local / community differentiation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking the same thing, wasn't sure why it was optional. Ill change it in that case.

Copy link
Member

Choose a reason for hiding this comment

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

Once that's ready to go, I can merge and you should be able to fix the federation tests for LemmyNet/lemmy#2585

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Forgot to push it, loll.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Looks good, thx.

@dessalines dessalines merged commit 60c5c85 into LemmyNet:main Dec 11, 2022
@makotech222
Copy link
Contributor Author

@dessalines Sorry, could you push a new version in the package.json? I probably should have done that in this PR.

@dessalines
Copy link
Member

My bad, done: 0.17.0-rc.56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants