소스 검색

Update profile view

Daniel Supernault 6 년 전
부모
커밋
bcabf0c76c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/views/profile/show.blade.php

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

@@ -7,14 +7,14 @@
     </div>
     </div>
 @endif
 @endif
 
 
-<profile profile-id="{{$profile->id}}"></profile>
+<profile profile-id="{{$profile->id}}" :profile-settings="{{json_encode($settings)}}"></profile>
 
 
 @endsection
 @endsection
 
 
 @push('meta')<meta property="og:description" content="{{$profile->bio}}">
 @push('meta')<meta property="og:description" content="{{$profile->bio}}">
     <meta property="og:image" content="{{$profile->avatarUrl()}}">
     <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('.atom')}}" rel="alternate" title="{{$profile->username}} on PixelFed" type="application/atom+xml">
-  @if(false == $settings->crawlable || $profile->remote_url)
+  @if(false == $settings['crawlable'] || $profile->remote_url)
   <meta name="robots" content="noindex, nofollow">
   <meta name="robots" content="noindex, nofollow">
   @endif
   @endif
 @endpush
 @endpush