Arc Forumnew | comments | leaders | submitlogin
2 points by rocketnia 5414 days ago | link | parent

But my problem still exits, how do I find out the story is a local post or a one with url.

You mean whether it's a topic with a URL and no text or a topic with text and no URL, right? Hmm, it looks like 'item-page is responsible for displaying the /item?id=... URL, and that calls 'display-item-text to display the textual content of the post. The implementation of 'display-item-text looks like this:

  (def display-item-text (s user)
    (when (and (cansee user s) 
               (in s!type 'story 'poll)
               (blank s!url) 
               (~blank s!text))
      (spacerow 2)
      (row "" s!text)))
So it seems stories have both URLs and text internally, but the text is never displayed unless (blank s!url). That's probably the test you're looking for.

In any case, welcome to Arc Forum! ^_^