TootList: mentions in toot links to profile page
All checks were successful
/ depoly (push) Successful in 1m17s
All checks were successful
/ depoly (push) Successful in 1m17s
- bug: main toot in TootBottomSheet does not link profile
This commit is contained in:
parent
92cc451811
commit
31b27237cd
5 changed files with 165 additions and 91 deletions
|
@ -1,4 +1,5 @@
|
|||
import {
|
||||
catchError,
|
||||
createRenderEffect,
|
||||
createResource,
|
||||
createSignal,
|
||||
|
@ -77,13 +78,18 @@ const Profile: Component = () => {
|
|||
);
|
||||
onCleanup(() => obx.disconnect());
|
||||
|
||||
const [profile] = createResource(
|
||||
const [profileErrorUncaught] = createResource(
|
||||
() => [session().client, params.id] as const,
|
||||
async ([client, id]) => {
|
||||
return await client.v1.accounts.$select(id).fetch();
|
||||
},
|
||||
);
|
||||
|
||||
const profile = () =>
|
||||
catchError(profileErrorUncaught, (err) => {
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
const [recentTootFilter, setRecentTootFilter] = createSignal({
|
||||
boost: false,
|
||||
reply: true,
|
||||
|
@ -271,7 +277,7 @@ const Profile: Component = () => {
|
|||
ref={(e) => obx.observe(e)}
|
||||
src={bannerImg()}
|
||||
style={{
|
||||
"object-fit": "contain",
|
||||
"object-fit": "cover",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue