Editing a node authored by another user displays the activity as the original user did it.

loze - October 13, 2008 - 08:19
Project:Activity
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

for example,

logged in as userA, editing a node originally posted by userB, will display:
"userB updated node-type node-title"
should be
"userA updated node-type node-title"

#1

jaydub - October 20, 2008 - 10:57

that's not what Drupal does in core. If a user with permission to edit another user's content edits that content, the owner of the content is still the original content author, not the one who edited it. The activity module operates on whatever the user ID (uid) associated with the node is as contained in the node object passed in via hook_nodeapi.

I would pose that if ownership of the node should now be userA then that be set via the node edit page in the 'Authoring Information' fieldset.

thoughts anyone?

#2

zilla - October 20, 2008 - 19:56

@jaydub - i second that emotion. a standard workflow may be an editor making a minor change, but the 'author' is still the original author. if the authorship changes, then that field should be altered to reflect this, not the call from the module...

#3

loze - October 22, 2008 - 19:28

I wasn't suggesting that the owner of the node change.
but to somehow indicate that another user other than the author has edited it.
maybe using revisions? I don't know if its possible, or if that's how its supposed to work.
it's just a suggestion

awesome module regardless.

thanks

#4

zilla - October 23, 2008 - 01:00

@loze - not sure, but take a look at the 'group wiki' page that OG module uses, it has a setting that allows (as one option) for any group member to edit the page, even if the page itself was created by group admin - curious to see how it tracks user changes (technically revisions and rollbacks as a standard wiki function)

in a more general sense, yes, exposing revisions will do this - if you allow users to see revisions (a permissions setting), then when they view a node they'll also see a link for 'revisions'

this is used right now in the drupal handbook on every page - you can see what it's gonna look like on your site by just taking a quick glance - original author name remains on node, revisions tab exposes all changes and dates and names of change authors with options to expose diffs

#5

lelizondob - October 26, 2008 - 11:46

I'm also getting this behavior in 5.x-4.x-dev, release before 2008-Oct-25, don't know yet if this changed..

 
 

Drupal is a registered trademark of Dries Buytaert.