-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Pinned posts #5055
Pinned posts #5055
Conversation
Your Render PR Server URL is https://social-app-pr-5055.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cr9phd3v2p9s738862gg. |
|
34e6b77
to
f97338a
Compare
f97338a
to
5b9eccb
Compare
7e1a414
to
6df7a66
Compare
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.
Fire, great work! Let's give it another pass once appview gets in before merging, but LGTM
}: { | ||
postUri: string | ||
postCid: string | ||
action: 'pin' | 'unpin' |
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.
Nice, dig the action
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 always get confused by boolean args
yep, gotta get the new lexicons in first |
0bcb0fe
to
30fe75c
Compare
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.
party time
if (!isReply) return true | ||
if (isRepost) return true | ||
if (isRepost || isPin) return true | ||
return isReply && isAuthorReplyChain(this.params.actor, post, feed) |
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.
think we could change this to rm the isReply &&
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'm really confused by the logic so I'm just not gonna touch it 😅
@@ -106,7 +108,9 @@ let PostDropdownBtn = ({ | |||
const {_} = useLingui() | |||
const defaultCtrlColor = theme.palette.default.postCtrl | |||
const langPrefs = useLanguagePrefs() | |||
const postDeleteMutation = usePostDeleteMutation() | |||
const {mutateAsync: deletePostMutate} = usePostDeleteMutation() | |||
const {mutateAsync: pinPostMutate, isPending: isPinPending} = |
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.
"Is the pinned post pending or is the pinned post done pending pinning?"
Try saying that 5 times fast.
* origin/main: Use Inter variable font (#5540) Fix name in `feature_request.yml` (#5542) Fix sticky offset, gear color (#5537) Move email test to root tests dir (#5527) revamp issue templates, add new arch template (#5532) use PressableScale for animation (#5541) Rework native autocomplete (#5521) Pinned posts (#5055) Remove Segment (#5518) Fix alignment of cancel button on search (#5520) [Share Extension] Support on Android for sharing videos to app (#5466) Ignore bogus onScroll values (#5499) add podcasts to spotify embeds (#5514) Tweak font size of "Write your reply" (#5513) Lazy load ViewShot (#5517) [Share Extension] Support images/movies from other apps like iMessage (#5515)
Dependant on bluesky-social/atproto#2771Ready to go!ReasonPin
reason, which custom feeds can also use if they want to indicate a post is pinned