Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit7a79b13

Browse files
committed
chore(deploy): build production
1 parente6dbc97 commit7a79b13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
5 Bytes
Binary file not shown.

‎lib/groupher_server/cms/delegates/Seeds/seeds.ex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ defmodule GroupherServer.CMS.Delegate.Seeds do
122122
defpseed_comments(thread,article_id,user)do
123123
0..Enum.random(1..5)
124124
|>Enum.each(fn_->
125-
text=Faker.Lorem.sentence(%Range{first:30,last:80})
125+
text=Faker.Lorem.sentence(20)
126126
{:ok,comment}=CMS.create_comment(thread,article_id,mock_comment(text),user)
127127
seed_comment_emotions(comment)
128128
seed_comment_replies(comment)
@@ -133,7 +133,7 @@ defmodule GroupherServer.CMS.Delegate.Seeds do
133133
with{:ok,users}<-db_insert_multi(:user,Enum.random(1..5))do
134134
users
135135
|>Enum.each(fnuser->
136-
text=Faker.Lorem.sentence(%Range{first:30,last:80})
136+
text=Faker.Lorem.sentence(20)
137137
{:ok,_}=CMS.reply_comment(comment.id,mock_comment(text),user)
138138
end)
139139
end

‎priv/mock/populator/cms_post.ex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule GroupherServer.Mock.CMS.Post do
77
defrandom_attrsdo
88
%{
99
title:Faker.Name.first_name()<>" "<>Faker.Name.last_name(),
10-
body:Faker.Lorem.paragraph(%Range{first:1,last:2})
10+
body:Faker.Lorem.sentence(20)
1111
}
1212
end
1313

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp