Playing around with news.arc, I thought one interesting feature would be to post the "text" field in /submit as a comment if the user inputs "url". I'm assuming this logic goes in the process-story method. (def process-story (user url title showtext text ip)
....
(let site (sitename url)
(let s (create-story url (process-title title) text user ip)
....
(submit-item user s)
....
"newest"))))
Am I looking at the right place?A) How do I add a call to submit comment?
OR B) am I just looking at first submitting the post and then using that as a parent id and then submit the comment as a reply to that in a two-step process. Thanks in advance. |