diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index bc4edbd..8835d92 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -84,6 +84,7 @@ export class AppLayout extends Component { }) this.streamNotifications() + } streamNotifications() { @@ -153,7 +154,7 @@ export class AppLayout extends Component { } searchForQuery(what: string) { - window.location.href = isDesktopApp? "hyperspace://hyperspace/app/index.html#/search?query=" + what: "/#/search?query=" + what; + window.location.href = isDesktopApp()? "hyperspace://hyperspace/app/index.html#/search?query=" + what: "/#/search?query=" + what; window.location.reload; } diff --git a/src/components/Post/Post.tsx b/src/components/Post/Post.tsx index 42cc773..d01c5c2 100644 --- a/src/components/Post/Post.tsx +++ b/src/components/Post/Post.tsx @@ -151,10 +151,15 @@ export class Post extends React.Component { {status.card.title} - {status.card.description || "No description provided. Click with caution."} + + { + status.card.description.slice(0, 500) + (status.card.description.length > 500? "...": "") + || "No description provided. Click with caution." + } + { - status.card.image? + status.card.image && status.media_attachments.length <= 0? : }