{this.state.tagline.match({ - some: tagline =>
, + some: tagline => ( +
+ ), none: <>, })}
{this.mobileView()}
@@ -804,7 +809,7 @@ export class Home extends Component { op == UserOperation.DeletePost || op == UserOperation.RemovePost || op == UserOperation.LockPost || - op == UserOperation.StickyPost || + op == UserOperation.FeaturePost || op == UserOperation.SavePost ) { let data = wsJsonToRes(msg, PostResponse); diff --git a/src/shared/components/modlog.tsx b/src/shared/components/modlog.tsx index e097d972..95e0cc86 100644 --- a/src/shared/components/modlog.tsx +++ b/src/shared/components/modlog.tsx @@ -16,12 +16,12 @@ import { ModAddView, ModBanFromCommunityView, ModBanView, + ModFeaturePostView, ModLockPostView, ModlogActionType, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, - ModStickyPostView, ModTransferCommunityView, PersonSafe, toUndefined, @@ -61,7 +61,7 @@ type ModlogType = { view: | ModRemovePostView | ModLockPostView - | ModStickyPostView + | ModFeaturePostView | ModRemoveCommentView | ModRemoveCommunityView | ModBanFromCommunityView @@ -182,12 +182,12 @@ export class Modlog extends Component { when_: r.mod_lock_post.when_, })); - let stickied_posts: ModlogType[] = res.stickied_posts.map(r => ({ - id: r.mod_sticky_post.id, - type_: ModlogActionType.ModStickyPost, + let featured_posts: ModlogType[] = res.featured_posts.map(r => ({ + id: r.mod_feature_post.id, + type_: ModlogActionType.ModFeaturePost, view: r, moderator: r.moderator, - when_: r.mod_sticky_post.when_, + when_: r.mod_feature_post.when_, })); let removed_comments: ModlogType[] = res.removed_comments.map(r => ({ @@ -287,7 +287,7 @@ export class Modlog extends Component { combined.push(...removed_posts); combined.push(...locked_posts); - combined.push(...stickied_posts); + combined.push(...featured_posts); combined.push(...removed_comments); combined.push(...removed_communities); combined.push(...banned_from_community); @@ -344,18 +344,21 @@ export class Modlog extends Component { ); } - case ModlogActionType.ModStickyPost: { - let mspv = i.view as ModStickyPostView; + case ModlogActionType.ModFeaturePost: { + let mspv = i.view as ModFeaturePostView; return ( <> - {mspv.mod_sticky_post.stickied.unwrapOr(false) - ? "Stickied " - : "Unstickied "} + {mspv.mod_feature_post.featured ? "Featured " : "Unfeatured "} Post {mspv.post.name} + + {mspv.mod_feature_post.is_featured_community + ? " In Community" + : " In Local"} + ); } @@ -679,8 +682,8 @@ export class Modlog extends Component { -