]> cat aescling's git repositories - mastodon.git/blob - app/controllers/emojis_controller.rb
Fixed an error in the aliases template of the aliases controller (#11902)
[mastodon.git] / app / controllers / emojis_controller.rb
1 # frozen_string_literal: true
2
3 class EmojisController < ApplicationController
4 before_action :set_emoji
5 before_action :set_cache_headers
6
7 def show
8 respond_to do |format|
9 format.json do
10 expires_in 3.minutes, public: true
11 render_with_cache json: @emoji, content_type: 'application/activity+json', serializer: ActivityPub::EmojiSerializer, adapter: ActivityPub::Adapter
12 end
13 end
14 end
15
16 private
17
18 def set_emoji
19 @emoji = CustomEmoji.local.find(params[:id])
20 end
21 end
This page took 0.076866 seconds and 4 git commands to generate.