mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
a08e724476
and atom feed generation to some extent, as well as the way mentions are stored
18 lines
371 B
Ruby
18 lines
371 B
Ruby
class StatusesController < ApplicationController
|
|
layout 'dashboard'
|
|
|
|
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
|