mirror of https://github.com/pixelfed/pixelfed.git
Update HomeSettings
This commit is contained in:
parent
226d810159
commit
d898d3f43c
|
@ -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 New Issue