Skip to content

Commit

Permalink
Emoji fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louiecaulfield committed Nov 1, 2014
1 parent e68a7af commit 848958c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/views/forem/posts/_post.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ show_buttons = post.persisted? && local_assigns[:show_buttons].nil? ? true : sho
<% if post_user.is_a?(Forem::NilUser) %>
<%= t(:deleted) %>
<% else %>
<<<<<<< HEAD
<%= link_to_if Forem.user_profile_links, post_user, [main_app, post_user] %>
=======
<%= link_to_if Forem.user_profile_links, post.user.forem_name, [main_app, post.user] %>
>>>>>>> dc8f34302e1d1b02f68629b436e0fbfc7754f788
<%= link_to_if Forem.user_profile_links, post_user.forem_name, [main_app, post_user] %>
<% end %>
</div>
<div class='icon'><%= forem_avatar(post_user, :size => 60) %></div>
Expand Down
6 changes: 5 additions & 1 deletion lib/forem/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'emoji'

module ::Forem
class Engine < Rails::Engine
isolate_namespace Forem
Expand All @@ -13,17 +15,19 @@ def root
Decorators.register! Engine.root, Rails.root
end

config.assets.paths << Emoji.images_path

# Precompile any assets included straight in certain pges
initializer "forem.assets.precompile", :group => :all do |app|
app.config.assets.precompile += %w[
forem/admin/members.js
]
app.config.assets.precompile << "emoji/**/*.png"
end
end
end

require 'simple_form'
require 'emoji'
require 'select2-rails'

# We need one of the two pagination engines loaded by this point.
Expand Down

0 comments on commit 848958c

Please sign in to comment.