Mark post as filtered depending on the pleroma.threadMuted property

This commit is contained in:
Stefano Pigozzi 2025-01-02 17:21:46 +01:00
parent 1653bc1e50
commit b375120508
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -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}