diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 13:23:47 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 13:23:47 +0100 |
commit | ab165547fdf556b10b80898c030d54e20bff50af (patch) | |
tree | c9478742222e0f73fe4049edbc6840d3020eb235 /app/services | |
parent | 1f7c0ad8d3d336b036d16272716e41812f65f5d9 (diff) | |
parent | f81dc7a33ae975b640089e474b01c2081119f372 (diff) |
Merge branch 'feature/toot-app-source' of https://github.com/ineffyble/mastodon into ineffyble-feature/toot-app-source
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 55405c0db..86a84f512 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -10,7 +10,7 @@ class PostStatusService < BaseService # @option [Enumerable] :media_ids Optional array of media IDs to attach # @return [Status] def call(account, text, in_reply_to = nil, options = {}) - status = account.statuses.create!(text: text, thread: in_reply_to, sensitive: options[:sensitive], visibility: options[:visibility]) + status = account.statuses.create!(text: text, thread: in_reply_to, sensitive: options[:sensitive], visibility: options[:visibility], application: options[:application]) attach_media(status, options[:media_ids]) process_mentions_service.call(status) process_hashtags_service.call(status) |