Skip to content

Instantly share code, notes, and snippets.

@tateisu
Created January 6, 2019 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tateisu/615e807f108f2ef3765f65bdef9e7216 to your computer and use it in GitHub Desktop.
Save tateisu/615e807f108f2ef3765f65bdef9e7216 to your computer and use it in GitHub Desktop.
posting scheduled status with media raises error
web_1 | [ec0d83d0-1b67-4492-9a82-399a665911d6] NameError (undefined local variable or method `media' for #<PostStatusService:0x0000563a60bc8a68>):
web_1 | [ec0d83d0-1b67-4492-9a82-399a665911d6]
web_1 | [ec0d83d0-1b67-4492-9a82-399a665911d6] app/services/post_status_service.rb:93:in `validate_media!'
web_1 | [ec0d83d0-1b67-4492-9a82-399a665911d6] app/services/post_status_service.rb:28:in `call'
web_1 | [ec0d83d0-1b67-4492-9a82-399a665911d6] app/controllers/api/v1/statuses_controller.rb:47:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment