diff options
Diffstat (limited to 'src/state/models/content/post-thread.ts')
-rw-r--r-- | src/state/models/content/post-thread.ts | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/state/models/content/post-thread.ts b/src/state/models/content/post-thread.ts index 74a75d803..577b76e01 100644 --- a/src/state/models/content/post-thread.ts +++ b/src/state/models/content/post-thread.ts @@ -118,7 +118,7 @@ export class PostThreadItemModel { assignTreeModels( v: AppBskyFeedDefs.ThreadViewPost, - higlightedPostUri: string, + highlightedPostUri: string, includeParent = true, includeChildren = true, ) { @@ -130,7 +130,12 @@ export class PostThreadItemModel { parentModel._showChildReplyLine = true if (v.parent.parent) { parentModel._showParentReplyLine = true - parentModel.assignTreeModels(v.parent, higlightedPostUri, true, false) + parentModel.assignTreeModels( + v.parent, + highlightedPostUri, + true, + false, + ) } this.parent = parentModel } else if (AppBskyFeedDefs.isNotFoundPost(v.parent)) { @@ -147,10 +152,10 @@ export class PostThreadItemModel { const itemModel = new PostThreadItemModel(this.rootStore, item) itemModel._depth = this._depth + 1 itemModel._showParentReplyLine = - itemModel.parentUri !== higlightedPostUri && replies.length === 0 + itemModel.parentUri !== highlightedPostUri && replies.length === 0 if (item.replies?.length) { itemModel._showChildReplyLine = true - itemModel.assignTreeModels(item, higlightedPostUri, false, true) + itemModel.assignTreeModels(item, highlightedPostUri, false, true) } replies.push(itemModel) } else if (AppBskyFeedDefs.isNotFoundPost(item)) { |