(search) Add an indicator when a link has a feed in the similar/linked domains views

This commit is contained in:
Viktor Lofgren 2025-01-02 18:11:57 +01:00
parent f71e79d10f
commit 8c8f2ad5ee
4 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,7 @@ public class DomainsProtobufCodec {
sd.getIndexed(), sd.getIndexed(),
sd.getActive(), sd.getActive(),
sd.getScreenshot(), sd.getScreenshot(),
sd.getFeed(),
SimilarDomain.LinkType.valueOf(sd.getLinkType().name()) SimilarDomain.LinkType.valueOf(sd.getLinkType().name())
); );
} }

View File

@ -9,6 +9,7 @@ public record SimilarDomain(EdgeUrl url,
boolean indexed, boolean indexed,
boolean active, boolean active,
boolean screenshot, boolean screenshot,
boolean feed,
LinkType linkType) { LinkType linkType) {
public String getRankSymbols() { public String getRankSymbols() {

View File

@ -206,7 +206,6 @@ public class SearchSiteInfoService {
String url = "https://" + domainName + "/"; String url = "https://" + domainName + "/";
boolean hasScreenshot = screenshotService.hasScreenshot(domainId); boolean hasScreenshot = screenshotService.hasScreenshot(domainId);
boolean isSubscribed = searchSiteSubscriptions.isSubscribed(context, domain); boolean isSubscribed = searchSiteSubscriptions.isSubscribed(context, domain);
if (domainId < 0) { if (domainId < 0) {

View File

@ -44,6 +44,12 @@
</td> </td>
<td class="px-3 py-6 sm:py-3 whitespace-nowrap"> <td class="px-3 py-6 sm:py-3 whitespace-nowrap">
@if (item.feed())
<i class="fas fa-rss text-orange-500 mr-1" title="Feed available"></i>
@else
<i class="fas fa-link mr-1"></i>
@endif
<a href="/site/${item.url().getDomain().toString()}?view=similar" <a href="/site/${item.url().getDomain().toString()}?view=similar"
rel="external noopener nofollow" rel="external noopener nofollow"
class="text-liteblue dark:text-blue-200 dark:text-blue-200"> class="text-liteblue dark:text-blue-200 dark:text-blue-200">