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

fix: prevent repeated login by reusing client-twitter session #2129

Merged
merged 11 commits into from
Jan 10, 2025

Conversation

tcm390
Copy link
Collaborator

@tcm390 tcm390 commented Jan 10, 2025

This PR is based on #1974 made by @mrsalitre (https://github.com/mrsalitre)
I’ve remade this PR because maintainer edit access was not enabled, making it difficult to make necessary changes directly.

Relates to

1969

Risks

Low:

  • No core functionalities affected

Background

What does this PR do?

This PR prevents multiple logins by reusing the session created by the client-twitter when posting. This resolves the twitter security alerts caused by repeated logins during post creation.

What kind of change is this?

Bug fixes: fixes issue 1969

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Where should a reviewer start?

  1. Add the plugin-twitter to your Eliza configuration. You can do this in one of the following locations:
  • defaultCharacter.ts
  • agent/src/index.ts
  • Your JSON character file.
  1. Trigger a post action using the agent.

Detailed testing steps

None: Automated and manual tests are welcome.

Deploy Notes

Database changes

Deployment instructions

Discord username

jeanayala.eth

@tcm390 tcm390 marked this pull request as draft January 10, 2025 19:39
@tcm390 tcm390 marked this pull request as ready for review January 10, 2025 19:43
@tcm390 tcm390 force-pushed the tcm-fix-plugin-twitter branch from 746b3fe to 6e61d9e Compare January 10, 2025 20:05
@shakkernerd shakkernerd merged commit 87d8eca into develop Jan 10, 2025
8 checks passed
@shakkernerd shakkernerd deleted the tcm-fix-plugin-twitter branch January 10, 2025 20:50
0xpi-ai pushed a commit to 0xpi-ai/NayariAI that referenced this pull request Jan 15, 2025
fix: prevent repeated login by reusing client-twitter session
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

Successfully merging this pull request may close these issues.

2 participants