Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Move post validation logic to syncForEach loop so bot doesn't quit if selected post isn't an image/gif #3

@RalphORama

Description

@RalphORama

In bot.js, we choose the first post that's found in /hot and don't check the MIME type until after we've quit out of the loop.

Logic flow should instead work like

  • syncForEach loop over /hot
    • fetch individual post
    • check content type
      • next('done') if content type is acceptable
      • next() otherwise
  • fetch target post
    • filter title
    • download content
    • postMediaChunked
    • post tweet

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions