Well, we don't expect guests to publish announcements...
But yeah seems like a bug
----
In the latest thread on the side, links of last poster won't link to profiles of users because of this code:
// Don't link to guest's profiles (they have no profile).
if($thread['lastposteruid'] == 0)
{
$lastposterlink = $thread['lastposter'];
}
else
{
$lastposterlink = build_profile_link($thread['lastposter'], $thread['lastposteruid']);
}
and the template use just '{$lastposterlink}', but in the case of the announcements (where the bug occur), we don't check if it's a guest and the template uses '<a href="{$mybb->settings['bburl']}/{$announcement['profilelink']}">{$announcement['username']}</a>'.
Should be the same method...