Skip to content

Commit f0cc51d

Browse files
authored
chore: update readme (#1101)
* chore: worker cron action * update next.config.js, MentionMatcher.tsx and general.ts * ci: update deploy-workers.yml
1 parent 1b04ca4 commit f0cc51d

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<br>
99
<div align="center">
1010
<a href="https://tape.xyz/u/sasicodes.lens">
11-
<img src="https://lens-badge.vercel.app/api/badge/sasicodes.lens" alt="Lens">
11+
<img src="https://lens-badge.vercel.app/api/badge/lens/sasicodes" alt="Lens">
1212
</a>
1313
<a href="https://www.gitpoap.io/gh/lenstube-xyz/lenstube">
1414
<img src="https://public-api.gitpoap.io/v1/repo/lenstube-xyz/lenstube/badge" alt="Gitpoap">

apps/web/src/components/Common/matchers/MentionMatcher.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { COMMON_REGEX, LENS_NAMESPACE_PREFIX } from '@tape.xyz/constants'
1+
import {
2+
COMMON_REGEX,
3+
LEGACY_LENS_HANDLE_SUFFIX,
4+
LENS_NAMESPACE_PREFIX
5+
} from '@tape.xyz/constants'
26
import { Matcher } from 'interweave'
37
import Link from 'next/link'
48
import React from 'react'
@@ -7,7 +11,9 @@ import type { MentionProps } from './utils'
711

812
const ProfileLink = ({ ...props }: any) => {
913
const namespace = props.display?.slice(1) as string
10-
const handle = namespace.replace(LENS_NAMESPACE_PREFIX, '')
14+
const handle = namespace
15+
.replace(LENS_NAMESPACE_PREFIX, '')
16+
.replace(LEGACY_LENS_HANDLE_SUFFIX, '')
1117

1218
return (
1319
<Link

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tape.xyz",
33
"description": "Talk, Amplify, Post, Explore",
4-
"version": "1.0.5-beta",
4+
"version": "2.0.0-beta",
55
"private": true,
66
"workspaces": [
77
"apps/*",

packages/constants/general.ts

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export const ALLOWED_UPLOAD_MIME_TYPES = [
158158
]
159159

160160
export const LENS_NAMESPACE_PREFIX = IS_MAINNET ? 'lens/' : 'test/'
161+
export const LEGACY_LENS_HANDLE_SUFFIX = IS_MAINNET ? '.lens' : '.test'
161162

162163
// other apps
163164
export const HEY_WEBSITE_URL = IS_MAINNET

0 commit comments

Comments
 (0)