diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js
index 02ff9ab28..21f0e3a6f 100644
--- a/app/javascript/flavours/glitch/components/status.js
+++ b/app/javascript/flavours/glitch/components/status.js
@@ -581,10 +581,7 @@ class Status extends ImmutablePureComponent {
// backgrounds for collapsed statuses are enabled.
attachments = status.get('media_attachments');
- if (status.get('poll')) {
- media.push();
- mediaIcons.push('tasks');
- }
+
if (usingPiP) {
media.push();
mediaIcons.push('video-camera');
@@ -684,6 +681,11 @@ class Status extends ImmutablePureComponent {
mediaIcons.push('link');
}
+ if (status.get('poll')) {
+ media.push();
+ mediaIcons.push('tasks');
+ }
+
// Here we prepare extra data-* attributes for CSS selectors.
// Users can use those for theming, hiding avatars etc via UserStyle
const selectorAttribs = {
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
index 528d2eb73..f4e6c24c5 100644
--- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js
+++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
@@ -134,10 +134,6 @@ class DetailedStatus extends ImmutablePureComponent {
outerStyle.height = `${this.state.height}px`;
}
- if (status.get('poll')) {
- media.push();
- mediaIcons.push('tasks');
- }
if (usingPiP) {
media.push();
mediaIcons.push('video-camera');
@@ -202,6 +198,11 @@ class DetailedStatus extends ImmutablePureComponent {
mediaIcons.push('link');
}
+ if (status.get('poll')) {
+ media.push();
+ mediaIcons.push('tasks');
+ }
+
if (status.get('application')) {
applicationLink = ยท {status.getIn(['application', 'name'])};
}