Encode custom emojis as resolveable objects in ActivityPub (#5243)
* Encode custom emojis as resolveable objects in ActivityPub * Improve code style
This commit is contained in:
parent
057db0ecd0
commit
3a3475450e
17 changed files with 132 additions and 48 deletions
6
db/migrate/20171006142024_add_uri_to_custom_emojis.rb
Normal file
6
db/migrate/20171006142024_add_uri_to_custom_emojis.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddUriToCustomEmojis < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :custom_emojis, :uri, :string
|
||||
add_column :custom_emojis, :image_remote_url, :string
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171005171936) do
|
||||
ActiveRecord::Schema.define(version: 20171006142024) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -99,6 +99,8 @@ ActiveRecord::Schema.define(version: 20171005171936) do
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.boolean "disabled", default: false, null: false
|
||||
t.string "uri"
|
||||
t.string "image_remote_url"
|
||||
t.index ["shortcode", "domain"], name: "index_custom_emojis_on_shortcode_and_domain", unique: true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue