mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Feat: Implement infinite scrolling brewery comment section
Refactor beer comment schemas to work on brewery comments as well. Add robots.txt to block crawling for now.
This commit is contained in:
@@ -30,7 +30,7 @@ const createNewBreweryPostComments = async ({
|
||||
const rating = Math.floor(Math.random() * 5) + 1;
|
||||
// eslint-disable-next-line no-plusplus
|
||||
for (let i = 0; i < numberOfComments; i++) {
|
||||
const content = faker.lorem.lines(5);
|
||||
const content = faker.lorem.lines(3).replace(/\n/g, ' ');
|
||||
const user = users[Math.floor(Math.random() * users.length)];
|
||||
const breweryPost = breweryPosts[Math.floor(Math.random() * breweryPosts.length)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user