misc: link to news' mfbc site, close #394

This commit is contained in:
Xylight committed 2024-08-02 16:18:37 -07:00
1 parent 6b19b4f154
commit c54969495b
1 file changed
+11 -8
+11 -8
View File
@@ -17,7 +17,7 @@
export const findSource = async ( export const findSource = async (
target: string, target: string,
dataset: any, dataset: any
): Promise<MBFCReport | undefined> => { ): Promise<MBFCReport | undefined> => {
if (!target) return undefined if (!target) return undefined
let left = 0 let left = 0
@@ -122,13 +122,16 @@
description={$t('post.actions.mediaBias.noData.description')} description={$t('post.actions.mediaBias.noData.description')}
/> />
{/if} {/if}
<Link {#if data}
href="https://mediabiasfactcheck.com/" <Link
class="text-sm text-slate-700 dark:text-zinc-300" target="_blank"
> href="https://mediabiasfactcheck.com/{data.name}"
<Icon src={Chain} micro size="14" /> class="text-sm text-slate-700 dark:text-zinc-300"
mediabiasfactcheck.com >
</Link> <Icon src={Chain} micro size="14" />
mediabiasfactcheck.com
</Link>
{/if}
{/await} {/await}
{/await} {/await}
</Modal> </Modal>