fix: 🐛 Don't auto mention yourself when replying/quoting yourself

This commit is contained in:
Jesse Wierzbinski 2024-04-27 21:54:13 -10:00
parent 86e254b7e7
commit a2a2149776
No known key found for this signature in database
5 changed files with 31 additions and 10 deletions

8
composables/Me.ts Normal file
View 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,
});
};

View file

@ -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),
);
};