0

The newsItem.newsData object contains several content-related getters like 'getActivitySummary()', 'getContent()' (probably some other). They can return null/undefined, however ActivityStreams always outputs correctly (more often the summary goes to the page). What is the order/algorithm of outputting the content?

Ivan Bondarenko
  • 545
  • 5
  • 4
  • I'm sure they map directly to the underlying ActivityStreams standard. Summary/Content and other most likely map to posted content. if the summary or content field is not present, I'm sure it'd return a null. you can always do a typeof to check if the element is null before using it. – Paul Bastide Jul 23 '13 at 17:10
  • So looks like summary is used first, then content if summary is null/undefined. I guess both cannot be null/undefined, because Connections kind of disallow empty posts. – Ivan Bondarenko Jul 25 '13 at 14:09
  • which would make sense, use the typeof to double check the null. – Paul Bastide Jul 25 '13 at 16:13

0 Answers0