OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0288429
)
add '<user> 曰く' to intro_text when story creates from submission
author
hylom
<hylom@users.osdn.me>
Wed, 5 Jun 2019 10:42:15 +0000
(10:42 +0000)
committer
hylom
<hylom@users.osdn.me>
Wed, 5 Jun 2019 10:42:15 +0000
(10:42 +0000)
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
b/src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
index
fd97e4b
..
18ddf67
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
+++ b/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
@@
-10,9
+10,11
@@
use Data::Dumper;
sub _submission_to_story {
my ($c, $submission) = @_;
my $story = {};
- for my $k (qw{title
intro_text
tags}) {
+ for my $k (qw{title tags}) {
$story->{$k} = $submission->{$k};
}
+ # convert intro_text
+ $story->{intro_text} = $c->tt2renderer->render("system/submission/submission_formatter", $submission);
$story->{submitter} = $submission->{uid};
return $story;
}