Skip to content

Commit

Permalink
Merge pull request #4549 from BOINC/dpa_news
Browse files Browse the repository at this point in the history
web: for News forum, always put oldest post (the news) first
  • Loading branch information
davidpanderson committed Dec 8, 2021
2 parents 6a8fe25 + a25db5d commit e029a73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions html/user/forum_thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@
</form><p>
';

// if it's news, show original post first
//
if (is_news_forum($forum) && !is_moderator($logged_in_user, null)) {
$sort_style = CREATE_TIME_OLD;
}

show_posts(
$thread, $forum, $start, $postid, $sort_style, $filter, $logged_in_user
);
Expand Down

0 comments on commit e029a73

Please sign in to comment.