2016-05-19 15:01:28 +01:00
|
|
|
@extends('master')
|
|
|
|
|
2017-11-04 12:10:46 +00:00
|
|
|
@section('title'){{ strip_tags($note->getOriginal('note')) }} « Notes « @stop
|
2016-05-19 15:01:28 +01:00
|
|
|
|
|
|
|
@section('content')
|
2017-11-04 12:10:46 +00:00
|
|
|
@include('templates.note', ['note' => $note])
|
2017-06-22 16:42:10 +01:00
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
return ($webmention->type == 'in-reply-to');
|
|
|
|
}) as $reply)
|
2017-11-04 12:10:46 +00:00
|
|
|
<div class="u-comment h-cite">
|
2020-11-01 15:23:54 +00:00
|
|
|
@if ($reply['author'])
|
|
|
|
<a class="u-author h-card mini-h-card" href="{{ $reply['author']['properties']['url'][0] }}">
|
|
|
|
@if (array_key_exists('photo', $reply['author']['properties']))
|
|
|
|
<img src="{{ $reply['author']['properties']['photo'][0] }}" alt="" class="photo u-photo logo">
|
|
|
|
@endif
|
2024-11-30 15:31:17 +00:00
|
|
|
<span class="fn">{{ $reply['author']['properties']['name'][0] ?? $reply['author']['properties']['nickname'][0] ?? 'unknown' }}</span>
|
2020-11-01 15:23:54 +00:00
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
Unknown author
|
|
|
|
@endif
|
|
|
|
said at <a class="dt-published u-url" href="{{ $reply['source'] }}">{{ $reply['published'] }}</a>
|
2017-11-04 12:10:46 +00:00
|
|
|
<div class="e-content p-name">
|
|
|
|
{!! $reply['reply'] !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-19 15:01:28 +01:00
|
|
|
@endforeach
|
2017-06-22 16:42:10 +01:00
|
|
|
@if($note->webmentions->filter(function ($webmention) {
|
2023-11-25 16:08:07 +00:00
|
|
|
return ($webmention->type === 'like-of');
|
|
|
|
})->count() > 0)
|
|
|
|
<h1 class="notes-subtitle">Likes</h1>
|
|
|
|
<div class="webmentions-author-list">
|
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
return ($webmention->type === 'like-of');
|
|
|
|
}) as $like)
|
|
|
|
<a href="{{ $like['author']['properties']['url'][0] }}">
|
2024-11-30 15:30:07 +00:00
|
|
|
<img src="{{ $like['author']['properties']['photo'][0] }}" alt="profile picture of {{ $like['author']['properties']['name'][0] ?? $like['author']['properties']['nickname'][0] ?? 'unknown' }}" class="like-photo">
|
2023-11-25 16:08:07 +00:00
|
|
|
</a>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2017-06-22 16:42:10 +01:00
|
|
|
@endif
|
|
|
|
@if($note->webmentions->filter(function ($webmention) {
|
2023-11-25 16:08:07 +00:00
|
|
|
return ($webmention->type === 'repost-of');
|
|
|
|
})->count() > 0)
|
|
|
|
<h1 class="notes-subtitle">Reposts</h1>
|
|
|
|
<div class="webmentions-author-list">
|
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
return ($webmention->type == 'repost-of');
|
|
|
|
}) as $repost)
|
|
|
|
<a href="{{ $repost['source'] }}">
|
2024-11-30 15:31:17 +00:00
|
|
|
<img src="{{ $repost['author']['properties']['photo'][0] }}" alt="{{ $repost['author']['properties']['name'][0] ?? $repost['author']['properties']['nickname'][0] ?? 'unknown' }} reposted this at {{ $repost['published'] }}">
|
2023-11-25 16:08:07 +00:00
|
|
|
</a>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2017-06-22 16:42:10 +01:00
|
|
|
@endif
|
2016-05-19 15:01:28 +01:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('scripts')
|
2023-11-25 16:08:07 +00:00
|
|
|
@parent
|
|
|
|
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
|
2016-05-19 15:01:28 +01:00
|
|
|
@stop
|