Skip to content

Commit

Permalink
Add community name to featured post action in Modlog (#1891)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarboniteKream authored Jul 10, 2023
1 parent 53c3cfe commit ed0fd26
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/shared/components/modlog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ function renderModlogType({ type_, view }: ModlogType) {
const {
mod_feature_post: { featured, is_featured_community },
post: { id, name },
community,
} = view as ModFeaturePostView;

return (
Expand All @@ -320,7 +321,12 @@ function renderModlogType({ type_, view }: ModlogType) {
<span>
Post <Link to={`/post/${id}`}>{name}</Link>
</span>
<span>{is_featured_community ? " In Community" : " In Local"}</span>
<span>
{is_featured_community
? " in community "
: " in Local, from community "}
</span>
<CommunityLink community={community} />
</>
);
}
Expand Down Expand Up @@ -532,7 +538,7 @@ function renderModlogType({ type_, view }: ModlogType) {

return (
<>
<span>Purged a Post from from </span>
<span>Purged a Post from </span>
<CommunityLink community={community} />
{reason && (
<span>
Expand Down

0 comments on commit ed0fd26

Please sign in to comment.