mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 00:42:09 +08:00
FIX: Linting via prettier
This commit is contained in:
parent
b4d1416076
commit
5e89714f77
@ -234,12 +234,10 @@ export default function transformPost(
|
|||||||
|
|
||||||
// Show a "Flag to delete" message if not staff and you can't
|
// Show a "Flag to delete" message if not staff and you can't
|
||||||
// otherwise delete it.
|
// otherwise delete it.
|
||||||
postAtts.showFlagDelete = (
|
postAtts.showFlagDelete =
|
||||||
!postAtts.canDelete &&
|
!postAtts.canDelete &&
|
||||||
postAtts.yours &&
|
postAtts.yours &&
|
||||||
(currentUser && !currentUser.staff)
|
(currentUser && !currentUser.staff);
|
||||||
);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
postAtts.canRecover = postAtts.isDeleted && postAtts.canRecover;
|
postAtts.canRecover = postAtts.isDeleted && postAtts.canRecover;
|
||||||
postAtts.canDelete =
|
postAtts.canDelete =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user