SkillPedia Skills Encyclopedia
中文 EN

技能 2026-06-27 10:44 UTC

claude-pluginsv0.2.0

版本【0.2.0】由提交人 devin-ai-integration 提交,主要更新类型为:功能特性新增与扩展。提交说明:fix: normalize tweet entities to prevent skills-discovery 500 error (#115)。为项目引入了新的能力与模块支持。

devin-ai-integration aec166c Kamalnrf/claude-plugins

Commit提交信息原文

fix: normalize tweet entities to prevent skills-discovery 500 error (#115)

* fix: normalize tweet entities to prevent skills-discovery 500 error

react-tweet@3.3.0 iterates tweet.entities.hashtags, .user_mentions,
and .symbols without null checks. The Twitter API omits these arrays
when a tweet has none, causing 'entities is not iterable' TypeError
during SSR and a 500 on the skills-discovery page.

Default the missing arrays to [] before passing to EmbeddedTweet.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: also normalize quoted_tweet entities

Address review feedback: enrichTweet in react-tweet also calls
getEntities on tweet.quoted_tweet, so apply the same entity
normalization to quoted tweets to prevent the same TypeError.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Kamal Mukkamala <kamalnrf@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>