Add post warnings to blog/mod #197
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user