forked from mirror/pixelfed
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;
|
||||
$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');
|
||||
$email = $request->input('email');
|
||||
$user = Auth::user();
|
||||
|
@ -80,12 +80,12 @@ trait HomeSettings
|
|||
$profile->name = $name;
|
||||
}
|
||||
|
||||
if (!$profile->website || $profile->website != $website) {
|
||||
if ($profile->website != $website) {
|
||||
$changes = true;
|
||||
$profile->website = $website;
|
||||
}
|
||||
|
||||
if (!$profile->bio || !$profile->bio != $bio) {
|
||||
if ($profile->bio != $bio) {
|
||||
$changes = true;
|
||||
$profile->bio = $bio;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue