jacobwb / hashover-next

This branch will be HashOver 2.0
GNU Affero General Public License v3.0
420 stars 87 forks source link

Problem with a custom thread name #338

Closed nsuomine closed 1 year ago

nsuomine commented 1 year ago

I use a custom thread name:

<script type="text/javascript">
var hashover = new HashOver ('hashover', {
      title: '[[*pagetitle]]',
      thread: 'article-[[*id]]',
});

For example, thread name can be article-453. Posting comments and replying works well but editing and liking comments fail. I did some debugging and when I try to like or edit a comment, Hashover generates a thread name from the URL and does not use my custom thread name format. This will lead to an error because Hashover cannot find the comment from the database when $threadName variable has a wrong value.

jacobwb commented 1 year ago

Thank you for reporting this. The thread name was being passed to the AJAX likes and comment edit info scripts, but the scripts weren't actually using the thread name given to them. I have now fixed this issue. Please let me know if the problem persists.