diff --git a/html/one-post.tsx b/html/one-post.tsx index b765877..a7863f0 100644 --- a/html/one-post.tsx +++ b/html/one-post.tsx @@ -13,6 +13,7 @@ export const Post = ({ posted, link, id, + alt_text = true, }: { children?: ComponentChildren; @@ -25,6 +26,7 @@ export const Post = ({ posted: string; link?: string; id?: string; + alt_text?: boolean; }) => (
@@ -48,7 +51,7 @@ export const Post = ({
- + ); @@ -59,34 +62,9 @@ render_and_copy( username="mehbark" posted="6 hr. ago" n_comments={2} + alt_text={false} > one post isn't really enough for me - - i don't really make the rules i'm just a bot - - - wait a minute! i didn't say that! you're putting posts in my mouth! - - - happens all the time. nothing personal, kid. - ); diff --git a/html/this-post-is-two-posts.tsx b/html/this-post-is-two-posts.tsx index 0d3dd72..90c256e 100644 --- a/html/this-post-is-two-posts.tsx +++ b/html/this-post-is-two-posts.tsx @@ -2,31 +2,49 @@ import { ComponentChildren } from "preact"; import { Main, mk_class_wrapper, render_and_copy } from "./common.tsx"; // i heard you liked posts, so i put a post in your post so you can post while you post -const ReblogIcon = () => ( - the cohost reblog icon -); +const ReblogIcon = ({ alt_text = true }: { alt_text?: boolean }) => + alt_text ? ( + the cohost reblog icon + ) : ( + + ); -const LikeIcon = () => ( - -); +const LikeIcon = ({ alt_text = true }: { alt_text?: boolean }) => + alt_text ? ( + + ) : ( + + ); -const OptionsIcon = () => ( - the cohost icon for post options -); +const OptionsIcon = ({ alt_text = true }: { alt_text?: boolean }) => + alt_text ? ( + the cohost icon for post options + ) : ( + + ); -export const Bottom = ({ n_comments }: { n_comments: number }) => ( +export const Bottom = ({ + n_comments, + alt_text = true, +}: { + n_comments: number; + alt_text?: boolean; +}) => ( @@ -61,12 +79,14 @@ export const Top = ({ username, link, posted, + alt_text = true, }: { display_name?: string; username: string; posted: string; link?: string; id?: string; + alt_text?: boolean; }) => (
@@ -82,7 +102,7 @@ export const Top = ({ {posted}
- +
);