Just remembered, in #1044676: Compare D7 hook_node_view with D6 hook_nodeapi(op=view) one of the things we corrected was the bug which was using user_access('schedule (un)publishing of nodes') when viewing the node, which had the effect that anon visitors (including googlebot) would not get to see the 'unavalable_after' data.

This error originated in the D6 code so I think this part of the fix needs to be ported. It is probably just a case of testing for op=view before doing the big 'if' block.

Comments

eric-alexander schaefer’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

Thanks for the reminder.

jonathan1055’s picture

Status: Needs review » Reviewed & tested by the community

After applying, and viewing from anon user we get:

meta name="googlebot" content="unavailable_after: 28-Feb-2011 17:17:17 UTC"

This was missing before the fix. RTBC

eric-alexander schaefer’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.