import { Component, linkEvent } from 'inferno';
-import { Post } from '../interfaces';
+import { Post } from 'lemmy-js-client';
import { mdToHtml } from '../utils';
import { i18n } from '../i18next';
return (
<>
{post.embed_title && !this.state.expanded && (
- <div class="card mt-3 mb-2">
+ <div class="card bg-transparent border-secondary mt-3 mb-2">
<div class="row">
<div class="col-12">
<div class="card-body">
</span>
) : (
<span>
- <a class="text-body" target="_blank" href={post.url}>
+ <a
+ class="text-body"
+ target="_blank"
+ href={post.url}
+ rel="noopener"
+ >
{post.embed_title}
</a>
</span>
class="text-muted font-italic"
target="_blank"
href={post.url}
+ rel="noopener"
>
{new URL(post.url).hostname}
<svg class="ml-1 icon">