+10
-2
post_component.js
+10
-2
post_component.js
···
699
// continue down
700
}
701
} else {
702
+
this.showPostAsBlocked();
703
return;
704
}
705
} else {
···
725
}
726
} catch (error) {
727
showError(error);
728
+
}
729
+
}
730
+
731
+
showPostAsBlocked() {
732
+
let stats = $(this.rootElement.querySelector(':scope > .content > p.stats'));
733
+
734
+
if (!stats.querySelector('.blocked-info')) {
735
+
let span = $tag('span.blocked-info', { text: '🚫 Post unavailable' });
736
+
stats.append(span);
737
}
738
}
739
+6
style.css
+6
style.css