Use bech32 links for events/profiles

This commit is contained in:
2023-01-06 14:36:13 +00:00
parent 25c292f47c
commit f864b682f5
8 changed files with 61 additions and 21 deletions

View File

@ -15,14 +15,14 @@ import Modal from "../element/Modal";
import { logout } from "../state/Login";
import FollowButton from "../element/FollowButton";
import VoidUpload from "../feed/VoidUpload";
import { openFile } from "../Util";
import { openFile, parseId } from "../Util";
import Timeline from "../element/Timeline";
import { extractLinks } from '../Text'
export default function ProfilePage() {
const dispatch = useDispatch();
const params = useParams();
const id = params.id;
const id = parseId(params.id);
const user = useProfile(id);
const publisher = useEventPublisher();
const loginPubKey = useSelector(s => s.login.publicKey);