Add post warnings to blog/mod #197

Merged
enes merged 3 commits from extra/154-blocked-warning into staging 2025-01-16 12:07:46 +00:00
2 changed files with 1 additions and 14 deletions
Showing only changes of commit a835996db7 - Show all commits

View File

@ -161,13 +161,6 @@ export const blogRouteLoader =
}
if (
isAdmin &&
muteLists.value.admin.replaceableEvents.includes(result.blog.aTag)
) {
result.isBlocked = true
}
if (
!isAdmin &&
muteLists.value.user.replaceableEvents.includes(result.blog.aTag)
) {
result.isBlocked = true

View File

@ -166,14 +166,8 @@ export const modRouteLoader =
result.postWarning = 'admin'
}
// Check if user has blocked this profile
if (
isAdmin &&
muteLists.value.admin.replaceableEvents.includes(result.mod.aTag)
) {
result.isBlocked = true
}
if (
!isAdmin &&
muteLists.value.user.replaceableEvents.includes(result.mod.aTag)
) {
result.isBlocked = true