add webln test page

This commit is contained in:
fsociety
2024-09-10 20:29:50 +02:00
parent 0260a61e7e
commit 2077cc9941
509 changed files with 5167 additions and 2240 deletions

View File

@@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Support\Facades\Cookie;
use Spatie\Comments\Models\Concerns\HasComments;
use Spatie\EloquentSortable\Sortable;
use Spatie\EloquentSortable\SortableTrait;
use Spatie\Feed\Feedable;
@@ -27,7 +26,6 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
use SortableTrait;
use HasStatuses;
use HasSlug;
use HasComments;
/**
* The attributes that aren't mass assignable.
@@ -130,25 +128,6 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
return $this->belongsToMany(Library::class);
}
/*
* This URL will be used in notifications to let the user know
* where the comment itself can be read.
*/
public function commentableName(): string
{
return __('Library Item');
}
public function commentUrl(): string
{
if ($this->type === 'markdown_article') {
return url()->route('article.view', ['libraryItem' => $this]);
} else {
return url()->route('libraryItem.view', ['libraryItem' => $this]);
}
}
public function toFeedItem(): CustomFeedItem
{
return CustomFeedItem::create()