Allow micropub to post notes and articles
This commit is contained in:
parent
5eed665801
commit
ca6205d2a6
9 changed files with 102 additions and 49 deletions
|
@ -18,7 +18,7 @@ use Ramsey\Uuid\Uuid;
|
|||
use Spatie\Browsershot\Browsershot;
|
||||
use Spatie\Browsershot\Exceptions\CouldNotTakeBrowsershot;
|
||||
|
||||
class BookmarkService
|
||||
class BookmarkService extends Service
|
||||
{
|
||||
/**
|
||||
* Create a new Bookmark.
|
||||
|
@ -26,7 +26,7 @@ class BookmarkService
|
|||
* @param array $request Data from request()->all()
|
||||
* @return Bookmark
|
||||
*/
|
||||
public function createBookmark(array $request): Bookmark
|
||||
public function create(array $request, ?string $client = null): Bookmark
|
||||
{
|
||||
if (Arr::get($request, 'properties.bookmark-of.0')) {
|
||||
//micropub request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue