mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 23:55:44 +08:00
Merge pull request #3596 from riking/patch-5
FIX: Automatically add like-count to post menu
This commit is contained in:
commit
1cdd630141
@ -238,3 +238,7 @@ pre.onebox code {
|
||||
.onebox-body .github-content-right{
|
||||
margin-left:100px;
|
||||
}
|
||||
|
||||
.twitterstatus .onebox-body p {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
10
db/migrate/20150709021818_add_like_count_to_post_menu.rb
Normal file
10
db/migrate/20150709021818_add_like_count_to_post_menu.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class AddLikeCountToPostMenu < ActiveRecord::Migration
|
||||
def up
|
||||
execute <<SQL
|
||||
UPDATE site_settings
|
||||
SET value = replace(value, 'like', 'like-count|like')
|
||||
WHERE name = 'post_menu'
|
||||
AND value NOT LIKE '%like-count%'
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user