mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update comments, fix remote reply bug
This commit is contained in:
parent
e6b52471fb
commit
f33061642a
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class PublicApiController extends Controller
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$limit = $request->limit ?? 10;
|
$limit = $request->limit ?? 10;
|
||||||
$profile = Profile::whereUsername($username)->whereNull('status')->firstOrFail();
|
$profile = Profile::whereNull('status')->findOrFail($username);
|
||||||
$status = Status::whereProfileId($profile->id)->whereCommentsDisabled(false)->findOrFail($postId);
|
$status = Status::whereProfileId($profile->id)->whereCommentsDisabled(false)->findOrFail($postId);
|
||||||
$this->scopeCheck($profile, $status);
|
$this->scopeCheck($profile, $status);
|
||||||
|
|
||||||
|
|
|
@ -1120,7 +1120,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchComments() {
|
fetchComments() {
|
||||||
let url = '/api/v2/comments/'+this.statusUsername+'/status/'+this.statusId;
|
let url = '/api/v2/comments/'+this.statusProfileId+'/status/'+this.statusId;
|
||||||
axios.get(url)
|
axios.get(url)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
@ -1306,7 +1306,7 @@ export default {
|
||||||
reply.thread = true;
|
reply.thread = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let url = '/api/v2/comments/'+reply.account.username+'/status/'+reply.id;
|
let url = '/api/v2/comments/'+reply.account.id+'/status/'+reply.id;
|
||||||
axios.get(url)
|
axios.get(url)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
reply.replies = _.reverse(response.data.data);
|
reply.replies = _.reverse(response.data.data);
|
||||||
|
|
Loading…
Reference in a new issue