this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply "public" filters for hashtag timeline

+6 -2
+6 -2
src/pages/hashtag.jsx
··· 14 14 import { SHORTCUTS_LIMIT } from '../components/shortcuts-settings'; 15 15 import Timeline from '../components/timeline'; 16 16 import { api } from '../utils/api'; 17 + import { filteredItems } from '../utils/filters'; 17 18 import showToast from '../utils/show-toast'; 18 19 import states from '../utils/states'; 19 20 import { saveStatus } from '../utils/states'; ··· 71 72 onlyMedia: media, 72 73 }) 73 74 .next(); 74 - const { value } = results; 75 + let { value } = results; 75 76 if (value?.length) { 76 77 if (firstLoad) { 77 78 latestItem.current = value[0].id; 78 79 } 79 80 81 + value = filteredItems(value, 'public'); 80 82 value.forEach((item) => { 81 83 saveStatus(item, instance, { 82 84 skipThreading: media, // If media view, no need to form threads ··· 102 104 onlyMedia: media, 103 105 }) 104 106 .next(); 105 - const { value } = results; 107 + let { value } = results; 108 + value = filteredItems(value, 'public'); 106 109 if (value?.length) { 107 110 return true; 108 111 } ··· 150 153 useItemID 151 154 view={media ? 'media' : undefined} 152 155 refresh={media} 156 + allowFilters 153 157 headerEnd={ 154 158 <Menu2 155 159 portal