]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix reblogged statuses being erroneously shown as filtered
authorClaire <claire.github-309c@sitedethib.com>
Thu, 30 Jun 2022 07:51:55 +0000 (09:51 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:28:01 +0000 (00:28 -0400)
Port 3c24f19afedc2169a7a343c5af4a8f892d863f0b to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/components/status.js
app/javascript/flavours/glitch/selectors/index.js

index 4ba602defcc2d034e163ccee5afd80d9bc08b3f0..501bcd300af0713a6dbc8793710c68ab67f3acfe 100644 (file)
@@ -557,7 +557,7 @@ class Status extends ImmutablePureComponent {
       );
     }
 
-    const matchedFilters = status.get('filtered') || status.getIn(['reblog', 'filtered']);
+    const matchedFilters = status.get('matched_filters');
     if (this.state.forceFilter === undefined ? matchedFilters : this.state.forceFilter) {
       const minHandlers = this.props.muted ? {} : {
         moveUp: this.handleHotkeyMoveUp,
index 63b10167cb8491d70bfb8d7be075cd77c48fa858..91f9a81d967ed28cd4277304487390d37524cced 100644 (file)
@@ -100,7 +100,7 @@ export const makeGetStatus = () => {
 
       if (statusReblog) {
         statusReblog = statusReblog.set('account', accountReblog);
-        statusReblog = statusReblog.set('filtered', filtered);
+        statusReblog = statusReblog.set('matched_filters', filtered);
       } else {
         statusReblog = null;
       }
@@ -108,7 +108,7 @@ export const makeGetStatus = () => {
       return statusBase.withMutations(map => {
         map.set('reblog', statusReblog);
         map.set('account', accountBase);
-        map.set('filtered', filtered);
+        map.set('matched_filters', filtered);
       });
     },
   );