Skip to content

Commit

Permalink
Youtube to YouTube
Browse files Browse the repository at this point in the history
  • Loading branch information
menghif authored and aserputov committed Apr 20, 2022
1 parent b5f7b24 commit 929a162
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/api/parser/src/data/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Post {
article.date = article.pubdate;
}

// All the Youtube feed return an array off html so we will need to convert it to a string so as to process and sanitize it
// All the YouTube feed return an array off html so we will need to convert it to a string so as to process and sanitize it
if (Array.isArray(article.content)) {
article.content = article.content.join(' ');
}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/data/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Post {
article.date = article.pubdate;
}

// All the Youtube feed return an array off html so we will need to convert it to a string so as to process and sanitize it
// All the YouTube feed return an array off html so we will need to convert it to a string so as to process and sanitize it
if (Array.isArray(article.content)) {
article.content = article.content.join(' ');
}
Expand Down
2 changes: 1 addition & 1 deletion src/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ model feeds {
id String // A short hashed id generated from the URL by Satellite,
user_id String? // optional, a user can claim an existing feed when they register
wiki_author_name String? // wiki owner of a feed, maybe unused when the feed is linked with an actual user
html_url String? //actual URL the feed refers to, could be a blog URL, a Youtube or Twitch channel
html_url String? //actual URL the feed refers to, could be a blog URL, a YouTube or Twitch channel
type FeedType? @default(blog)
invalid Boolean? @default(false)
flagged Boolean? @default(false)
Expand Down
4 changes: 2 additions & 2 deletions src/web/app/src/components/SignUp/Forms/ChannelFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const ChannelFeeds = connect<{}, SignUpForm>((props) => {
return (
<div className={classes.root}>
<div className={classes.container}>
<h1 className={classes.blogPageTitle}>Youtube and Twitch</h1>
<h1 className={classes.blogPageTitle}>YouTube and Twitch</h1>
<h2 className={classes.helpText}>
OPTIONAL: Enter your YouTube and/or Twitch channels and select the RSS feed(s) you want to
use in Telescope (separate more than one URL with a space)
Expand All @@ -228,7 +228,7 @@ const ChannelFeeds = connect<{}, SignUpForm>((props) => {
<TextInput
name={channelUrl.name}
label={channelUrl.label}
helperText={channelUrlError || 'Validate your Youtube or Twitch URL(s)'}
helperText={channelUrlError || 'Validate your YouTube or Twitch URL(s)'}
error={!!channelUrlError}
/>
<Button className={classes.button} onClick={validateChannel} disabled={validating}>
Expand Down
2 changes: 1 addition & 1 deletion src/web/app/src/components/SignUp/Schema/FormModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
},
channelUrl: {
name: 'channelUrl',
label: 'Youtube/Twitch URL(s)',
label: 'YouTube/Twitch URL(s)',
invalidErrorMsg: 'Invalid URL(s)',
},
feeds: {
Expand Down
2 changes: 1 addition & 1 deletion src/web/app/src/components/SignUp/Schema/FormSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default [
),
}),

// Fourth step we collect the user Youtube/Twitch channels and the RSSfeeds from it.
// Fourth step we collect the user YouTube/Twitch channels and the RSSfeeds from it.
Yup.object().shape({
[channelUrl.name]: Yup.string(),
[feeds.name]: Yup.array().of(Yup.string()),
Expand Down

0 comments on commit 929a162

Please sign in to comment.