It's me again! I finally wrote my "Diff" extension (which adds a "post revision history" feature) but I have two issues waiting to be solved.
Here's the GitHub link for the extension: Diff for Flarum
1-) Dropdown list is not showing up immediately after clicking the "Edited" button.
When i click the "Edited" button, i expect dropdown list to be show up with loading indicator (as in notification list) but it seems it is waiting for response from /api/diff/{postId}
and initialize the list after that. Here's the related lines:
What am i doing wrong? Why it is not working as i expected?
2-) Dropdown list is not showing up on [deleted]
user's post.
This is a strange one. I tracked it and it's working all the way up to the load()
function (see above for the related line), requesting data from /api/diff/{postId}
and returns 200 OK response but the list is not showing up. I tried with multiple [deleted]
accounts with no luck.