Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Properly hide content warning in quoted post
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacocococo committed Dec 29, 2023
1 parent c6081fb commit 962c094
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ protected void toggleSpoiler(Status status, boolean isForQuote, String itemID){
displayItems.addAll(index+1, spoilerItem.contentItems);
adapter.notifyItemRangeInserted(index+1, spoilerItem.contentItems.size());
}else{
if(spoilers.size()>1 && !isForQuote && status.quote.spoilerRevealed)
toggleSpoiler(status.quote, true, itemID);
displayItems.subList(index+1, index+1+spoilerItem.contentItems.size()).clear();
adapter.notifyItemRangeRemoved(index+1, spoilerItem.contentItems.size());
}
Expand Down

0 comments on commit 962c094

Please sign in to comment.