Refactoring Grape API methods into normal controllers & other things
This commit is contained in:
parent
11ff92c9d7
commit
0e8f59c16f
63 changed files with 336 additions and 406 deletions
|
@ -7,7 +7,7 @@ class PostStatusService < BaseService
|
|||
def call(account, text, in_reply_to = nil)
|
||||
status = account.statuses.create!(text: text, thread: in_reply_to)
|
||||
process_mentions_service.(status)
|
||||
account.ping!(atom_user_stream_url(id: account.id), [HUB_URL])
|
||||
account.ping!(account_url(account, format: 'atom'), [HUB_URL])
|
||||
status
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue