alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix: RTL override for display names
author
Pouria Delfanazari
date
9 months ago
(Oct 22, 2025, 3:41 PM -0700)
commit
9eb787bf
9eb787bf0a828965ae22b3de7ab6e9a90a945c02
parent
17c00aa6
17c00aa6167b918f142b3162725575b6a81a9c98
+11
-1
2 changed files
Expand all
Collapse all
Unified
Split
src
webapp
features
feeds
components
feedActivityStatus
FeedActivityStatus.tsx
lib
utils
text.ts
+2
-1
src/webapp/features/feeds/components/feedActivityStatus/FeedActivityStatus.tsx
View file
Reviewed
···
4
4
import Link from 'next/link';
5
5
import { getRelativeTime } from '@/lib/utils/time';
6
6
import { getRecordKey } from '@/lib/utils/atproto';
7
7
+
import { sanitizeText } from '@/lib/utils/text';
7
8
8
9
interface Props {
9
10
user: FeedItem['user'];
···
29
30
c="blue"
30
31
fw={600}
31
32
>
32
32
-
{props.user.name}
33
33
+
{sanitizeText(props.user.name)}
33
34
</Anchor>{' '}
34
35
{collections.length === 0 ? (
35
36
'added to library'
+9
src/webapp/lib/utils/text.ts
View file
Reviewed
···
5
5
6
6
return text.slice(0, maxLength) + '...';
7
7
};
8
8
+
9
9
+
export const sanitizeText = (text: string): string => {
10
10
+
if (typeof text !== 'string') {
11
11
+
return '';
12
12
+
}
13
13
+
14
14
+
// remove known bidirectional control characters
15
15
+
return text.replace(/[\u202E\u202D\u202B\u200F\u200E\u202C\u200C]/g, '');
16
16
+
};