move uploader upload count increment from upload to post

This commit is contained in:
Albert Yi
2018-06-20 10:43:48 -07:00
parent 3f6e069eed
commit 62218fdb51
3 changed files with 2 additions and 6 deletions

View File

@@ -304,11 +304,7 @@ class UploadService
end
def start!(uploader_id)
if source.present?
if !Utils.is_downloadable?(source)
return
end
if Utils.is_downloadable?(source)
CurrentUser.as_system do
if Post.tag_match("source:#{source}").exists?
return