Closed (duplicate)
Project:
SimpleFeed
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2008 at 00:39 UTC
Updated:
8 Apr 2012 at 01:51 UTC
When simplefeed runs, it runs through cron generally and feed items are created with the super user instead of the user that owns the feed (and persumably the feed items). We should make this happen using the psuedo code:
$user = user_load(array('uid' => $feed->uid));
// run drupal_execute_form()
// Load the anonymous user to prevent other strange errors
$user = drupal_anonymous_user();
Needs to be tested but this way if a user adds a blog, cron runs and grabs items, and user goes to delete their blog, all of those items should still be deleted since they are owner of it.
Comments
Comment #1
mfer commentedI think this is a great feature and I wondered about this before. I'm wondering what the performance hit will be.
Comment #2
m3avrck commentedYes, it would slow down feed parsing a tad, user_load() can be slow.
However, maybe we can make a psuedo-user object.
That would be pretty efficient.
Comment #3
m3avrck commentedAlready fixed.
Comment #4
plinan commentedI updated the module to the latest version but still am having the same problem. The feed items created by CRON are under the author "anonymous", instead of the user who created the feed. Is anyone seeing this?
Comment #5
fehin commentedsubscribing