Add tracking of OAuth app that posted a status, extend OAuth apps to have optional website field, add application details to API, show application name and website on detailed status views. Resolves #11
parent
4b384d6914
commit
8e0c1914fb
@ -0,0 +1,8 @@
|
||||
module ApplicationExtension
|
||||
extend ActiveSupport::Concern
|
||||
included do
|
||||
validates :website
|
||||
end
|
||||
end
|
||||
|
||||
Doorkeeper::Application.send :include, ApplicationExtension
|
@ -0,0 +1,3 @@
|
||||
object @application
|
||||
|
||||
attributes :id, :name, :website
|
@ -0,0 +1,5 @@
|
||||
class AddApplicationToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :statuses, :application_id, :int
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class AddWebsiteToOauthApplication < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :oauth_applications, :website, :string
|
||||
end
|
||||
end
|
Loading…
Reference in new issue