mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-22 06:00:48 +00:00
Update SettingsController
This commit is contained in:
parent
4c1d35cfa2
commit
218f215938
1 changed files with 8 additions and 2 deletions
|
@ -192,8 +192,14 @@ class SettingsController extends Controller
|
||||||
$patreon = Str::startsWith($request->input('patreon'), 'https://') ?
|
$patreon = Str::startsWith($request->input('patreon'), 'https://') ?
|
||||||
substr($request->input('patreon'), 8) :
|
substr($request->input('patreon'), 8) :
|
||||||
$request->input('patreon');
|
$request->input('patreon');
|
||||||
$liberapay = Str::startsWith($request->input('liberapay'), 'https://') ? substr($request->input('liberapay'), 8) : $request->input('liberapay');
|
|
||||||
$opencollective = Str::startsWith($request->input('opencollective'), 'https://') ? substr($request->input('opencollective'), 8) : $request->input('opencollective');
|
$liberapay = Str::startsWith($request->input('liberapay'), 'https://') ?
|
||||||
|
substr($request->input('liberapay'), 8) :
|
||||||
|
$request->input('liberapay');
|
||||||
|
|
||||||
|
$opencollective = Str::startsWith($request->input('opencollective'), 'https://') ?
|
||||||
|
substr($request->input('opencollective'), 8) :
|
||||||
|
$request->input('opencollective');
|
||||||
|
|
||||||
$patreon = Str::startsWith($patreon, 'patreon.com/') ? e($patreon) : null;
|
$patreon = Str::startsWith($patreon, 'patreon.com/') ? e($patreon) : null;
|
||||||
$liberapay = Str::startsWith($liberapay, 'liberapay.com/') ? e($liberapay) : null;
|
$liberapay = Str::startsWith($liberapay, 'liberapay.com/') ? e($liberapay) : null;
|
||||||
|
|
Loading…
Reference in a new issue