Skip to content

Commit

Permalink
Fixed topic bumping with imported NNTP posts
Browse files Browse the repository at this point in the history
Resolves #20

A better solution will be coming in #21
  • Loading branch information
sman591 committed Mar 28, 2016
1 parent 3ab8e14 commit fa012f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/discourse_nntp_bridge/post_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def update_post_from_article(article, post, newsgroup)
message_id: article.message_id,
post_id: post.id
)
if post.topic.bumped_at < post.created_at
post.topic.update_attribute(:bumped_at, post.created_at)
end
end

# def process_subscriptions(post)
Expand Down

0 comments on commit fa012f6

Please sign in to comment.