diff --git a/lib/Lacuna/RPC/Empire.pm b/lib/Lacuna/RPC/Empire.pm index 3529d730..e194e15e 100644 --- a/lib/Lacuna/RPC/Empire.pm +++ b/lib/Lacuna/RPC/Empire.pm @@ -712,7 +712,13 @@ sub view_public_profile { }; } my @colonies; - my $probes = Lacuna->db->resultset('Probes')->search_any({empire_id => $viewer_empire->id}); + my $probes = Lacuna->db->resultset('Probes'); + + if ($viewer_empire->alliance_id) { + $probes = $probes->search_any({ alliance_id => $viewer_empire->alliance_id }); + } else { + $probes = $probes->search_any({ empire_id => $viewer_empire->id }); + } my $planets = $viewed_empire->planets->search(undef,{order_by => 'name'}); while (my $colony = $planets->next) { if ($colony->id == $viewed_empire->home_planet_id || $probes->search({star_id=>$colony->star_id})->count) { diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 6be16ed0..b6e88f9f 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -35,6 +35,7 @@ - Mod: Warnings about fissures shouldn't bother as many out of range. - Mod: Split happiness cost calculation with SS & Colonies. - Mod: SS Plans get cheaper packaging, level of SS Lab matters. + - Fix: Known colonies includes allied knowledge. 3.0908: - Mod: trash_messages_where now defaults to not returning deleted message IDs.