fix: group fediverse "relMe" function

This commit is contained in:
Levi 2023-09-12 16:50:14 +02:00
parent 8cd59630f4
commit 1dbd7a2d65
1 changed files with 15 additions and 17 deletions

View File

@ -5,16 +5,14 @@
<head>
<meta charset="utf-8">
{{-- Mastodon rel="me" link --}}
@foreach($links as $link)
@if($link->name === "mastodon")
<link href="{{$link->link}}" rel="me">
@endif
@endforeach
{{-- Fediverse rel="me" links --}}
@php
$relMe = "mastodon, firefish";
$relMeList = explode(', ', $relMe);
@endphp
{{-- Firefish rel="me" link --}}
@foreach($links as $link)
@if($link->name === "firefish")
@if(in_array($link->name, $relMeList))
<link href="{{$link->link}}" rel="me">
@endif
@endforeach