Closed (fixed)
Project:
Node Comments
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2009 at 05:57 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedComment #2
merlinofchaos commentedAdding tag
Comment #3
quicksketchI did some basic cleanup to nodecomment_links(), but there's some very suspicious logic going on in hook_link(). We've got a segment of code like this:
As you can figure, we have this IF statement, but the same values are passed in either way (the second parameter will always be 0). This is the only place in the module where the nodecomment_links() function is called, so I wonder if we need the extra function at all, and if we need to have the $parent parameter, since it was never used anyway.
Anyway, attached is the patch that has been committed so far, we still need some more work on this issue.
Comment #4
merlinofchaos commentedOk, I understand this now.
comment.module, you could visit node/25/271 and if 271 was a valid $cid for that node, you would view just that one comment. In this incredibly never used instance, there would be a 'parent' link in the comment links section to go back to the node.
This is silly. I'd say we just remove that, *but* we should make sure that comments put their node parent in the breadcrumb so they can go back to the node parent that way. Which also leads to: We may need to do something to ensure that a node comment gets the full breadcrumb trail that the node would've gotten, which may actually be difficult because breadcrumbs are often added on node view. Maybe we could accomplish this by running a nodeapi view op for the parent node when viewing the page for a comment node, without actually rendering the parent node.
Comment #5
merlinofchaos commentedhttp://drupal.org/cvs?commit=220392