* Add MVP of hide comment feature * Slight copy adjustments * Remove unused file oops * Fix strange styling issues * Add hide/unhide comment specs * Authenticate user for hide/unhide * Add tests for hide/unhide functionality * Remove opacity CSS for hidden comments * Fix hidden comment explanation logic * Fix some styling issues * Fix hiding top level comment logic * Show only hidden comments in permalink and not thread * Hide subtree properly if hidden comment * Fix weird CSS issue * Properly hide comments for permalink view * Show children comments in permalink view * Add tests for comment hiding visibility * Remove superfluous code and adjust copy * Remove some more logical duplication * Add dedicated article column for any comments hidden * Add reload in test
10 lines
293 B
JavaScript
10 lines
293 B
JavaScript
import hideBlockedContent from '../contentDisplayPolicy/hideBlockedContent';
|
|
import initHiddenComments from '../contentDisplayPolicy/initHiddenComments';
|
|
|
|
window.InstantClick.on('change', () => {
|
|
hideBlockedContent();
|
|
initHiddenComments();
|
|
});
|
|
|
|
hideBlockedContent();
|
|
initHiddenComments();
|