mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
fix: 🐛 Don't auto mention yourself when replying/quoting yourself
This commit is contained in:
parent
86e254b7e7
commit
a2a2149776
5 changed files with 31 additions and 10 deletions
8
composables/Me.ts
Normal file
8
composables/Me.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { StorageSerializers } from "@vueuse/core";
|
||||
import type { Account } from "~/types/mastodon/account";
|
||||
|
||||
export const useMe = () => {
|
||||
return useLocalStorage<Account | null>("lysand:me", null, {
|
||||
serializer: StorageSerializers.object,
|
||||
});
|
||||
};
|
||||
|
|
@ -10,9 +10,6 @@ export const useMegalodon = (
|
|||
|
||||
return computed(
|
||||
() =>
|
||||
new Mastodon(
|
||||
useBaseUrl().value,
|
||||
ref(tokenData).value?.access_token,
|
||||
),
|
||||
new Mastodon(useBaseUrl().value, toValue(tokenData)?.access_token),
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue