Skip to content

Commit 0321a8d

Browse files
committedNov 27, 2023
Add a few more testimonials 🧡
1 parent 5c59fdc commit 0321a8d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎packages/docs/src/components/Tweets.astro

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const BEARER_TOKEN = import.meta.env.BEARER_TOKEN;
1010
const isFetch = ENVIRONMENT !== 'development' && Boolean(BEARER_TOKEN);
1111
1212
const tweetIds = [
13+
'1729181106715632088',
14+
'1729157761215369264',
15+
'1727040036334424406',
16+
'1726807293583609935',
1317
'1714023231689031941',
1418
'1696221274039595363',
1519
'1693944495472046382',

‎packages/docs/src/util/tweet.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const replaceShortenedUrls = (tweet: TweetWithUser) => {
2-
if (!tweet.entities.urls) return tweet;
3-
let text = tweet.note_tweet?.text ?? tweet.text;
2+
let text = (tweet.note_tweet?.text ?? tweet.text).replace(/^(@[^ ]+ )*/, '');
3+
if (!tweet.entities.urls) return { ...tweet, text };
44
tweet.entities.urls.sort((a, b) => b.start - a.start);
55
tweet.entities.urls.forEach(urlEntity => {
66
if (urlEntity.media_key) {

0 commit comments

Comments
 (0)
Please sign in to comment.