Skip to content

Pinterest: store and show the pin's board on post cards #379

Description

@paulocastellano

Other tools show the pin's board (cover thumbnail + board name) under the account name on Pinterest post cards. We don't store it.

  • Posts published by TryPost already keep board_id in the post platform meta (PostPlatformMetaRules, PinterestPublisher).

  • Imported pins: the Pinterest v5 pin object includes board_id.

  • Name and cover come from the account's board list, which we already fetch for the composer (ListPinterestBoards, PinterestBoardController).

  • On publish and on import, resolve board_id → board name + cover image URL through the account's board list (cached per account, one call) and store them in the post/publication meta.

  • Existing posts get filled on the next import/discovery run.

  • Card header: board cover + name under the account name (Sent, details dialog, grid if relevant).

  • Tests with Http::fake; handle a deleted board gracefully.

Docs: https://developers.pinterest.com/docs/api/v5/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions