This commit is contained in:
2026-03-20 21:17:26 +01:00
parent 1a62fcb81d
commit 29c3ff8572
229 changed files with 13147 additions and 2577 deletions

View File

@@ -24,6 +24,11 @@ class ArtworkSharedNotification extends Notification implements ShouldQueue
return ['database'];
}
public function databaseType(object $notifiable): string
{
return 'artwork_shared';
}
public function toDatabase(object $notifiable): array
{
return [
@@ -34,7 +39,7 @@ class ArtworkSharedNotification extends Notification implements ShouldQueue
'sharer_id' => $this->sharer->id,
'sharer_name' => $this->sharer->name,
'sharer_username' => $this->sharer->username,
'message' => "{$this->sharer->name} shared your artwork "{$this->artwork->title}"",
'message' => $this->sharer->name . ' shared your artwork "' . $this->artwork->title . '"',
'url' => "/@{$this->sharer->username}?tab=posts",
];
}