Commit 250d0d02 authored by drumm's avatar drumm
Browse files

#106607 by anantagati. Add the user picture for node previews.

parent 94f6f95d
......@@ -2154,6 +2154,7 @@ function node_preview($node) {
// user ID 0 denotes the anonymous user.
if ($user = user_load(array('name' => $node->name))) {
$node->uid = $user->uid;
$node->picture = $user->picture;
}
else {
$node->uid = 0; // anonymous user
......@@ -2162,6 +2163,7 @@ function node_preview($node) {
else if ($node->uid) {
$user = user_load(array('uid' => $node->uid));
$node->name = $user->name;
$node->picture = $user->picture;
}
// Set the timestamps when needed:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment