feat: Add webmention counts and icons for replies, likes, and reposts.

- Add new SVG icons for the "reply", "like", and "repost" actions
- Update webmention info display in note template to include counts and icons for replies, likes, and reposts
- Add webmention counts to FrontPageController.php and modify queries in NotesController.php
- Modify WebMentionsTableSeeder.php to change URLs, commentable ID, and add new WebMentions
This commit is contained in:
Jonny Barnes 2023-11-25 16:08:07 +00:00
parent 5bc03f36d2
commit 92098a793e
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
15 changed files with 179 additions and 35 deletions

View file

@ -40,6 +40,31 @@
in <span class="p-location h-adr">{!! $note->address !!}<data class="p-latitude" value="{{ $note->latitude }}"></data><data class="p-longitude" value="{{ $note->longitude }}"></data></span>
@endif
</div>
@if($note->replies > 0 || $note->likes > 0 || $note->reposts > 0)
<div class="webmention-info">
@if($note->replies > 0)
<div class="replies">
@include('icons.reply')
{{ $note->replies }}
<span class="sr-only">replies</span>
</div>
@endif
@if($note->likes > 0)
<div class="likes">
@include('icons.like')
{{ $note->likes }}
<span class="sr-only">likes</span>
</div>
@endif
@if($note->reposts > 0)
<div class="reposts">
@include('icons.repost')
{{ $note->reposts }}
<span class="sr-only">reposts</span>
</div>
@endif
</div>
@endif
<div class="syndication-links">
@if(
$note->tweet_id ||