Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Show pending moderation notice.

Matt Roberts7113926207e5
diff --git a/public/pages/ShowPost/ShowPost.page.tsx b/public/pages/ShowPost/ShowPost.page.tsx
index 8987941f2..5429320df 100644
--- a/public/pages/ShowPost/ShowPost.page.tsx
+++ b/public/pages/ShowPost/ShowPost.page.tsx
@@ -251,16 +251,16 @@ export default function ShowPostPage(props: ShowPostPageProps) {
</VStack>
{/* Moderation status banner for unapproved posts */}
- {!editMode && fider.session.showModerationControls && !props.post.isApproved && (
+ {!editMode && !props.post.isApproved && (
<div>
- {fider.session.isAuthenticated && fider.session.user.id === props.post.user.id && (
- <div className="text-muted text-sm p-3 bg-yellow-50 rounded border-l-4 border-yellow-500">
+ {fider.session.isAuthenticated && (
+ <div className="text-muted text-sm p-3 bg-yellow-50 rounded-md mt-2 border-yellow-500">
<Trans id="showpost.moderation.awaiting">Awaiting moderation.</Trans>
</div>
)}
{/* Admin moderation buttons */}
- {fider.session.isAuthenticated && fider.session.user.isCollaborator && (
+ {fider.session.isAuthenticated && fider.session.showModerationControls && fider.session.user.isCollaborator && (
<div className="p-3 bg-blue-50 rounded border-l-4 border-blue-500 mt-4">
<div className="mb-2 text-sm font-medium text-blue-800">
<Trans id="showpost.moderation.admin.title">Moderation</Trans>
diff --git a/public/pages/ShowPost/components/ShowComment.tsx b/public/pages/ShowPost/components/ShowComment.tsx
index 295760df5..e38c89b4e 100644
--- a/public/pages/ShowPost/components/ShowComment.tsx
+++ b/public/pages/ShowPost/components/ShowComment.tsx
@@ -247,7 +247,7 @@ export const ShowComment = (props: ShowCommentProps) => {
{fider.session.tenant.isModerationEnabled && !comment.isApproved && (
<div className="mt-3">
{fider.session.isAuthenticated && fider.session.user.id === comment.user.id && (
- <div className="text-muted text-xs p-2 bg-yellow-50 rounded border-l-4 border-yellow-500">
+ <div className="text-muted text-xs p-2 bg-yellow-50 rounded-md border-yellow-500">
<Trans id="showpost.moderation.comment.awaiting">Awaiting moderation.</Trans>
</div>
)}