do not requre lang_functions in announce request

This commit is contained in:
xiaomlove
2022-06-09 17:37:03 +08:00
parent 11d906a869
commit d95979b579
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -5,5 +5,8 @@ namespace App\Models;
class Post extends NexusModel
{
public function user()
{
return $this->belongsTo(User::class, 'userid');
}
}
+1 -1
View File
@@ -411,7 +411,7 @@ class User extends Authenticatable
$comment = addslashes($comment);
do_log("update: " . json_encode($update) . ", $commentField: $comment", 'notice');
$update[$commentField] = NexusDB::raw("if($commentField = '', '$comment', concat_ws('\n', '$comment', $commentField))");
return $this->update($update);
return $this->update($update);
}
public function canAccessAdmin()