about summary refs log tree commit diff
path: root/src/components/moderation/LabelsOnMeDialog.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-07-25 23:02:37 +0100
committerGitHub <noreply@github.com>2024-07-25 23:02:37 +0100
commitac1538baad6acc6a8af6ee788f0603ae45f2d963 (patch)
tree42aed4be5da741b04721b80ef0bfb5270f366c08 /src/components/moderation/LabelsOnMeDialog.tsx
parent3914025227f7b63039928f771f351c3e9bb48581 (diff)
downloadvoidsky-ac1538baad6acc6a8af6ee788f0603ae45f2d963.tar.zst
Refactor feed slices (#4834)
* Copy FeedViewPost into FeedSliceItem

* Explicitly construct feed slice items by copying known fields

* Type rootItem as FeedViewPost for now

Mergefeed logic relies on that.

* Unify reason and __source for slice items

* Move feedContext out of FeedSliceItem

* Remove slice.isFlattenedReply

* Remove unnused slice.ts

* Inline slice.isFullThread

* Refactor condition for clarity

* Extract slice.includesThreadRoot

* Encapsulate more usages of slice.rootItem into slice

* Rename slice.rootItem so semi-private slice._feedPost

* Move reason into slice

* Simplify slice ctor argument

* Reorder getters to reduce diff

* Make feedContext a getter to reduce diff
Diffstat (limited to 'src/components/moderation/LabelsOnMeDialog.tsx')
0 files changed, 0 insertions, 0 deletions