mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
Update HomeSettings
This commit is contained in:
parent
226d810159
commit
d898d3f43c
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ trait HomeSettings
|
||||||
|
|
||||||
$changes = false;
|
$changes = false;
|
||||||
$name = strip_tags($request->input('name'));
|
$name = strip_tags($request->input('name'));
|
||||||
$bio = Purify::clean($request->input('bio'));
|
$bio = $request->filled('bio') ? Purify::clean($request->input('bio')) : null;
|
||||||
$website = $request->input('website');
|
$website = $request->input('website');
|
||||||
$email = $request->input('email');
|
$email = $request->input('email');
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
@ -80,12 +80,12 @@ trait HomeSettings
|
||||||
$profile->name = $name;
|
$profile->name = $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$profile->website || $profile->website != $website) {
|
if ($profile->website != $website) {
|
||||||
$changes = true;
|
$changes = true;
|
||||||
$profile->website = $website;
|
$profile->website = $website;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$profile->bio || !$profile->bio != $bio) {
|
if ($profile->bio != $bio) {
|
||||||
$changes = true;
|
$changes = true;
|
||||||
$profile->bio = $bio;
|
$profile->bio = $bio;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue