mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-13 03:26:21 +01:00
Mark post as filtered depending on the pleroma.threadMuted
property
This commit is contained in:
parent
1653bc1e50
commit
b375120508
1 changed files with 6 additions and 3 deletions
|
@ -345,6 +345,8 @@ function Status({
|
|||
if (!status) {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.debug("ASDF", status)
|
||||
|
||||
const {
|
||||
account: {
|
||||
|
@ -393,6 +395,9 @@ function Status({
|
|||
// _filtered,
|
||||
// Non-Mastodon
|
||||
emojiReactions,
|
||||
pleroma: {
|
||||
threadMuted,
|
||||
} = {}
|
||||
} = status;
|
||||
|
||||
const [languageAutoDetected, setLanguageAutoDetected] = useState(null);
|
||||
|
@ -428,8 +433,6 @@ function Status({
|
|||
return null;
|
||||
}
|
||||
|
||||
console.debug('RENDER Status', id, status?.account.displayName, quoted);
|
||||
|
||||
const debugHover = (e) => {
|
||||
if (e.shiftKey) {
|
||||
console.log({
|
||||
|
@ -438,7 +441,7 @@ function Status({
|
|||
}
|
||||
};
|
||||
|
||||
if (/*allowFilters && */ size !== 'l' && filterInfo) {
|
||||
if (/*allowFilters && */ size !== 'l' && (filterInfo || threadMuted)) {
|
||||
return (
|
||||
<FilteredStatus
|
||||
status={status}
|
||||
|
|
Loading…
Reference in a new issue