Browse Source

Merge pull request 'fix' (#148) from KingChan/forgeplus:chenjing into standalone_develop

pull/338/head
KingChan 2 years ago
parent
commit
d663e6b2bc
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      app/models/topic.rb

+ 0
- 1
app/models/topic.rb View File

@@ -50,7 +50,6 @@ class Topic < ApplicationRecord

if self.url.include?("gitlink.org.cn/forums/") || self.url.include?("trustie.net/forums/")
request_memo = Forum::Memos::GetService.call(self.uuid)
binding.pry
data[:visits] = request_memo.nil? ? 0 : request_memo["memo"]["viewed_count"]
data[:created_time] = request_memo.nil? ? format_time(Time.now) : request_memo["memo"]["published_time"]
end


Loading…
Cancel
Save