Ticket #293 (new defect)

Opened 10 months ago

Last modified 10 months ago

Include posts from RSS when listing latest posts

Reported by: curro Assigned to: nobody
Priority: normal Milestone:
Component: core Version: 0.8.2
Severity: normal Keywords: resources, latest posts
Cc: Patch Included: 0
Review Stage: needinfo

Description

You can publish content from an external source directly to your blog.

And when you clic on http://yoursite.com/elgg/weblog/everyone, you can see all blogs from individual blogs, communities and imported from resources.

However, keywords used at the frontpage (as {{blogsummary}}) just show posts from blogs and communities, but never from external sources. (This also happens with activity reports from folio plugin)

I think this is due external content is stored in a different table.

Could it be posible that all kind of posts were included when showing latest post in keywords?

Change History

01/31/08 15:03:23 changed by ewout

  • review_stage changed from unreviewed to needinfo.

Wether a feed is published to a weblog is set in the feedsubscription table (autopost field). I don't think an external weblog post is any different from a regular post as far as the database is concerned.

The blogsummary keyword is defined in mod/blog/lib.php and contains this SQL:

"select * from " . $CFG->prefix . "weblog_posts where ($where) order by posted desc limit $blog_posts"

The $where is just the access restriction. I don't understand why this would not return all posts, irrespective of where the post came from. Is this a elgg 0.8 thing?

02/04/08 15:45:57 changed by curro

You're right, sorry, my mistake.

I've been testing again and I see the blogsummary keyword works as you say and it brings all posts (that's not the case of 'your activity', but this is another problem).

In fact, the problem is that posts from RSS are not included unless someone click on 'your resources' and load the external posts. (I suppose this makes add new external posts to the proper weblog)

What is the solution to have external posts automatically updated?

Thanks