Skip to content

Commit

Permalink
Fix getting edit history of non-forum comments
Browse files Browse the repository at this point in the history
  • Loading branch information
itismadness committed Aug 20, 2021
1 parent 7ad18fd commit b6f3f99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/CommentViewer/Collage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class Collage extends \Gazelle\CommentViewer {
public function __construct(int $viewerId, int $collageId) {
parent::__construct($viewerId);
$this->baseLink = "collages.php?action=comments&collageid={$collageId}";
$this->page = 'collage';
$this->page = 'collages';
}
}
2 changes: 1 addition & 1 deletion app/CommentViewer/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class Request extends \Gazelle\CommentViewer {
public function __construct(int $viewerId, int $requestId) {
parent::__construct($viewerId);
$this->baseLink = "requests.php?action=view&id={$requestId}";
$this->page = 'request';
$this->page = 'requests';
}
}
2 changes: 1 addition & 1 deletion app/CommentViewer/Torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class Torrent extends \Gazelle\CommentViewer {
public function __construct(int $viewerId, int $groupId) {
parent::__construct($viewerId);
$this->baseLink = "torrents.php?id={$groupId}";
$this->page = 'torrent';
$this->page = 'torrents';
}
}
1 change: 1 addition & 0 deletions sections/comments/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ function ($x) {
'show_warn' => $Viewer->permitted('users_warn') && !$ownProfile && $Viewer->classLevel() >= $author->classLevel(),
'show_unread' => false,
'url' => $commentMan->findById($PostID)->url(),
'page' => $Action
]);
$DB->set_query_id($Comments);
}
Expand Down

0 comments on commit b6f3f99

Please sign in to comment.