Skip to content

Commit 9504387

Browse files
committed
iterate
1 parent 8e07387 commit 9504387

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

TODO.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
- [ ] convert more components to TypeScript
1616
- [ ] convert more components to functional components
1717
- [ ] remove legacy withTranslation/withRouter hooks and replace with hooks
18+
- [ ] add multiple times the same source, further comments are not displayed
19+
- [ ] Adding a link in a comment text shows wrong error message
20+
- [ ] Adding a link in a statement text shows wrong error message
1821

1922
# To test
2023

app/components/Comments/Source.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const isPlayer = (url) => {
3333

3434
const PLAYER_CONFIG = { youtube: { playerVars: { showinfo: 1 } } }
3535

36-
export const Source = ({ source: { url, title, site_name }, withoutPlayer }) => {
36+
export const Source = ({ source: { url, title, siteName }, withoutPlayer }) => {
3737
if (!withoutPlayer && isPlayer(url)) {
3838
return (
3939
<ReactPlayer
@@ -54,7 +54,7 @@ export const Source = ({ source: { url, title, site_name }, withoutPlayer }) =>
5454
<div className="flex items-center gap-1">
5555
<ExternalLink className="flex-grow-0 flex-shrink-0 basis-[14x]" size={14} />
5656
<span className="font-semibold truncate group-hover:underline">
57-
{site_name ? site_name.toUpperCase() : getDisplayableHostname(url)}
57+
{siteName ? siteName.toUpperCase() : getDisplayableHostname(url)}
5858
</span>
5959
</div>
6060
<span className="italic text-[0.95em]">{title}</span>

app/components/VideoDebate/VideoDebate.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const COMMENT_FRAGMENT = gql`
3232
source {
3333
id
3434
url
35+
title
36+
siteName
3537
}
3638
}
3739
`

0 commit comments

Comments
 (0)