Skip to content

Fix thread rendering when there is a reply to a non-existing parent

Eugenij requested to merge fix-broken-threads into master

Re: #3 (closed)

Fix thread rendering when there is a reply to a non-existing parent.

Statuses without valid inReplyToId become replies to the first status in the thread.

Example:

(Edit: Maybe we can also add some kind of visual indicator to give users a hint that this is a reply to a non-existing status)

Before the "3" status is deleted:

Screen_Shot_2020-10-09_at_1.22.28_AM

After the "3" status is deleted:

(Edit: maybe it would better to create a "dummy" post with the placeholder avatar, nickname and the "Deleted" content and nest the replies so it looks more like an actual post that was deleted. Edit2: implemented that)

Screen_Shot_2020-10-13_at_4.03.45_PM

Without the indicator:

Screen_Shot_2020-10-09_at_1.23.46_AM

Edited by Eugenij

Merge request reports

Loading