Add post warnings to blog/mod #197
@ -161,13 +161,6 @@ export const blogRouteLoader =
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
isAdmin &&
|
|
||||||
muteLists.value.admin.replaceableEvents.includes(result.blog.aTag)
|
|
||||||
) {
|
|
||||||
result.isBlocked = true
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
!isAdmin &&
|
|
||||||
muteLists.value.user.replaceableEvents.includes(result.blog.aTag)
|
muteLists.value.user.replaceableEvents.includes(result.blog.aTag)
|
||||||
) {
|
) {
|
||||||
result.isBlocked = true
|
result.isBlocked = true
|
||||||
|
@ -166,14 +166,8 @@ export const modRouteLoader =
|
|||||||
result.postWarning = 'admin'
|
result.postWarning = 'admin'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if user has blocked this profile
|
||||||
if (
|
if (
|
||||||
isAdmin &&
|
|
||||||
muteLists.value.admin.replaceableEvents.includes(result.mod.aTag)
|
|
||||||
) {
|
|
||||||
result.isBlocked = true
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
!isAdmin &&
|
|
||||||
muteLists.value.user.replaceableEvents.includes(result.mod.aTag)
|
muteLists.value.user.replaceableEvents.includes(result.mod.aTag)
|
||||||
) {
|
) {
|
||||||
result.isBlocked = true
|
result.isBlocked = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user