mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
Merge pull request #3596 from riking/patch-5
FIX: Automatically add like-count to post menu
This commit is contained in:
commit
1cdd630141
2 changed files with 14 additions and 0 deletions
app/assets/stylesheets/common/base
db/migrate
|
@ -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…
Add table
Reference in a new issue