Browse Source

Update profile view, add AP meta link

Daniel Supernault 6 năm trước cách đây
mục cha
commit
af290e0215
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      resources/views/profile/show.blade.php

+ 3 - 2
resources/views/profile/show.blade.php

@@ -12,10 +12,11 @@
 @endsection
 
 @push('meta')<meta property="og:description" content="{{$profile->bio}}">
-    <meta property="og:image" content="{{$profile->avatarUrl()}}">
-    <link href="{{$profile->permalink('.atom')}}" rel="alternate" title="{{$profile->username}} on PixelFed" type="application/atom+xml">
   @if(false == $settings['crawlable'] || $profile->remote_url)
   <meta name="robots" content="noindex, nofollow">
+  @else  <meta property="og:image" content="{{$profile->avatarUrl()}}">
+    <link href="{{$profile->permalink('.atom')}}" rel="alternate" title="{{$profile->username}} on PixelFed" type="application/atom+xml">
+    <link href='{{$profile->permalink()}}' rel='alternate' type='application/activity+json'>
   @endif
 @endpush