Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use 'embeds' and 'mentions' when publishing casts #621

Closed
seeARMS opened this issue May 30, 2023 · 7 comments
Closed

Add ability to use 'embeds' and 'mentions' when publishing casts #621

seeARMS opened this issue May 30, 2023 · 7 comments

Comments

@seeARMS
Copy link

seeARMS commented May 30, 2023

Is your feature request related to a problem? Please describe.
Warpcast no longer processes text to generate embeds: https://warpcast.com/gt/0xfca6bf

We run a bot that posts content from our users. Historically, Warpcast crawled links contained within our casts, then used that as the cast image, which was great. Now, according to the above, the Warpcast team does not parse text anymore, so we manually need to add images/links to the embeds array when publishing a cast.

This package does not support adding in fields beyond text when publishing a cast.

Describe the solution you'd like

  • modify publishCast to support adding in the embeds/mentions array; or,
  • create a new method to add more complex publishing options like embeds/mentions, and leave publishCast to be a simple text cast

Describe alternatives you've considered
We can use hubs directly, eg https://github.com/farcasterxyz/hub-monorepo/blob/main/packages/hub-nodejs/examples/make-cast/index.ts, but we already rely on this package so would prefer not to migrate.

Additional context
Weeks ago, when Warpcast crawled links (beautiful):

image

Now (ugly):

image
@gsgalloway
Copy link
Contributor

Thanks @seeARMS, we'll get this addressed shortly

@seeARMS
Copy link
Author

seeARMS commented Jul 31, 2023

Hi @gsgalloway, any updates here?

Appreciate the help!

@gsgalloway
Copy link
Contributor

Hi @seeARMS

We've been discussing with the Warpcast team the future of this package, in light of the Warpcast team's plan to deprecate their API. We were unsure as to whether we should in turn be deprecating this package and redirecting users to the hub APIs. Apologies that we haven't been communicative here along the way.

Latest understanding is that the Neynar team will be replicating the Warpcast API sometime in the upcoming couple of months, and that it should be a drop-in replacement.

We should be able to support this feature, then, and include it in the migration to Neynar's replacement.

gsgalloway added a commit that referenced this issue Sep 5, 2023
github-actions bot pushed a commit that referenced this issue Oct 5, 2023
# [5.7.0](v5.6.0...v5.7.0) (2023-10-05)

### Bug Fixes

* **deps:** bump axios from 1.3.4 to 1.3.5 ([7d9ee28](7d9ee28))
* **deps:** bump axios from 1.3.5 to 1.3.6 ([a7fbc1a](a7fbc1a))
* **deps:** bump axios from 1.3.6 to 1.4.0 ([97d850e](97d850e))
* **deps:** bump canonicalize from 1.0.8 to 2.0.0 ([8fb66af](8fb66af))

### Features

* adds support for embeds ([37a9c14](37a9c14)), closes [#621](#621)
@gsgalloway
Copy link
Contributor

Supported in new Neynar API package

@seeARMS
Copy link
Author

seeARMS commented Oct 16, 2023

Thanks.

Is the new package published to npm?

➜ yarn add @standard-crypto/farcaster-js-neynar
➤ YN0027: @standard-crypto/farcaster-js-neynar@unknown can't be resolved to a satisfying range
➤ YN0035: The remote server failed to provide the requested resource
➤ YN0035:   Response Code: 404 (Not Found)
➤ YN0035:   Request Method: GET
➤ YN0035:   Request URL: https://registry.yarnpkg.com/@standard-crypto%2ffarcaster-js-neynar

@gsgalloway
Copy link
Contributor

Not yet, need another day or two to wrap up final steps

@gsgalloway
Copy link
Contributor

Available now @seeARMS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants