PostStatusService can attach media to status, ProcessFeedService likewise
This commit is contained in:
parent
ae1fac0062
commit
eec0dc46a6
12 changed files with 32 additions and 85 deletions
|
@ -1,16 +0,0 @@
|
|||
class StatusesController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
def create
|
||||
PostStatusService.new.(current_user.account, status_params[:text])
|
||||
redirect_to root_path
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def status_params
|
||||
params.require(:status).permit(:text)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue