当收藏除主题/帖子(例如聊天)以外的项目时,/activity/bookmarks 的活动单元格中的 post_id 将是 undefined,在调用 lastPostUrl(highestPostNumber) 函数后,highest_post_number 将变为 /t/undefined,并链接到 Access Denied while trying to load /t/id_for/undefined You're not allowed to view that. 页面。
此提交在这种情况下的链接更改为确切的 this.bookmarkable_url,从而解决了该问题。