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

Refactor post meta to return PostView #5645

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Refactor post meta to return PostView #5645

merged 1 commit into from
Oct 24, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Oct 8, 2024

Gonna stack a few little cleanups.

This first one removes the special ComposerOptsQuote type in favor of plain AppBskyFeedDefs.PostView. The meta returned when resolving post records now also becomes AppBskyFeedDefs.PostView.

In a follow-up, I'll change meta for other links to also use normal views.

Test Plan

Note that this is touching actual quote display — not just composer previews. Verify quoting different types of posts (no media, media, quote, external link, non-post record, gif, some combinations) still works. Both in the composer (where you should see a preview of what you're quoting) and after posting (there should be no regression in displaying quotes — both in the feed and in the individual posts). It would be good to check moderation has not regressed (blocks get applied etc).

I've noticed even in prod there are some existing issues (like quotes of starter packs not displaying anything inside the quoted post bubble). I expect that this refactor should neither make those better nor worse.

@arcalinea arcalinea temporarily deployed to embed-others - social-app PR #5645 October 21, 2024 16:57 — with Render Destroyed
Copy link

Old size New size Diff
7.9 MB 7.9 MB -994 B (-0.01%)

@gaearon gaearon merged commit e8a53dc into main Oct 24, 2024
6 checks passed
@gaearon gaearon deleted the embed-others branch October 24, 2024 19:41
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.

3 participants