mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lnbits paid articles added
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<i class="fa fa-thin fa-plus"></i>
|
<i class="fa fa-thin fa-plus"></i>
|
||||||
{{ __('Submit news articles') }}
|
{{ __('Submit news articles') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@if(auth()->user()->lnbits)
|
@if(auth()->user()->lnbits['wallet_id'])
|
||||||
<x-button
|
<x-button
|
||||||
class="whitespace-nowrap"
|
class="whitespace-nowrap"
|
||||||
:href="route('news.form', ['type' => 'paid'])"
|
:href="route('news.form', ['type' => 'paid'])"
|
||||||
|
|||||||
@@ -117,7 +117,11 @@ Route::get('/lnurl-auth-callback', function (Request $request) {
|
|||||||
'is_lecturer' => true,
|
'is_lecturer' => true,
|
||||||
'name' => $fakeName,
|
'name' => $fakeName,
|
||||||
'email' => str($request->key)->substr(-12).'@portal.einundzwanzig.space',
|
'email' => str($request->key)->substr(-12).'@portal.einundzwanzig.space',
|
||||||
'lnbits' => [],
|
'lnbits' => [
|
||||||
|
'api_key' => null,
|
||||||
|
'url' => null,
|
||||||
|
'wallet_id' => null,
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
$user->ownedTeams()
|
$user->ownedTeams()
|
||||||
->save(Team::forceCreate([
|
->save(Team::forceCreate([
|
||||||
|
|||||||
Reference in New Issue
Block a user