-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
src/interfaces/source.ts
Outdated
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>; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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 Sorry, could you push a new version in the package.json? I probably should have done that in this PR. |
My bad, done: |
See LemmyNet/lemmy#2585