mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
@@ -47,6 +47,9 @@ class PostSerializer extends PostBasicSerializer
|
||||
if ($canEdit) {
|
||||
$attributes['content'] = $post->content;
|
||||
}
|
||||
if ($gate->allows('viewPostIps', $post)) {
|
||||
$attributes['ipAddress'] = $post->ip_address;
|
||||
}
|
||||
} else {
|
||||
$attributes['content'] = $post->content;
|
||||
}
|
||||
|
Reference in New Issue
Block a user