This website works better with JavaScript.
Home
Explore
Sign In
miteruzo
/
btrc-hub
Watch
1
Star
0
Fork
0
Code
Issues
70
Pull Requests
1
Releases
0
Wiki
Activity
Browse Source
細部
#103
みてるぞ
3 weeks ago
parent
199783a6d4
commit
dd764be0cb
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
backend/app/controllers/posts_controller.rb
+4
-0
backend/config/schedule.rb
+ 1
- 1
backend/app/controllers/posts_controller.rb
View File
@@ -71,7 +71,7 @@ class PostsController < ApplicationController
post.thumbnail.attach(thumbnail)
if post.save
post.resized_thumbnail!
post.tags = Tag.normalise_tags(tag
s
_names)
post.tags = Tag.normalise_tags(tag_names)
render json: post.as_json(include: { tags: { only: [:id, :name, :category, :post_count] } }),
status: :created
else
+ 4
- 0
backend/config/schedule.rb
View File
@@ -6,3 +6,7 @@ set :output, standard: '/var/log/btrc_hub_nico_sync.log',
every 1.day, at: '3:00 pm' do
rake 'nico:sync', environment: 'production'
end
every 1.day, at: '0:00 am' do
rake 'post_similarity:calc', environment: 'production'
end
Write
Preview
Loading…
Cancel
Save