NewsFeedHandler

Jeremy P

XenForo developer
Staff member
Working on a NewsFeedHandler for a custom content type on a site. I have defined a publish method in the DataWriter, it is inserting the proper data into the news feed table, and the news_feed_handler is defined in xf_content_type_field.

When viewing the Recent Activity feed in debug mode, it seems to be calling the custom NewsFeedHandler class correctly, and retrieving data from the database via getContentByIds, but no item is shown in the news feed. I have a template in the format of news_feed_item_$contentType_$action. What else would be required to get items appearing in the news feed?
 
Figured it out, it was being unset since no content was being returned because I didn't write the getContentByIds method properly, sorry.
 
Top Bottom