OSDN Git Service
(root)
/
newslash
/
newslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
editor: article editor supports media embed
[newslash/newslash.git]
/
src
/
newslash_web
/
lib
/
Newslash
/
Web
/
Controller
/
API
/
Story.pm
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
7f68440
..
5ad6cc5
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
+++ b/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
@@
-181,6
+181,11
@@
sub post {
# TODO: media related
#$item->{mediaurl};
#$item->{mediatype};
+ #$item->{media};
+
+ if ($item->{media}) {
+ $params->{media} = $item->{media};
+ }
# source
if ($item->{source_id}) {