diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index b7fac6c7..7ef42a73 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -60,7 +60,7 @@ class Application extends App implements IBootstrap { $context->registerSearchProvider(UnifiedSearchProvider::class); $context->registerWellKnownHandler(WebfingerHandler::class); $context->registerEventListener(BeforeTemplateRenderedEvent::class, ProfileSectionListener::class); -// $context->registerDashboardWidget(SocialWidget::class); + $context->registerDashboardWidget(SocialWidget::class); } public function boot(IBootContext $context): void { diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index 0b43ce36..14b167df 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -169,13 +169,13 @@ export default { }, defaultVisibility: { type: String, - default: localStorage.getItem('social.lastPostType') || 'followers', + default: undefined, }, }, data() { return { statusContent: '', - visibility: this.defaultVisibility, + visibility: this.defaultVisibility || localStorage.getItem('social.lastPostType') || 'followers', loading: false, /** @type {Object} */ attachments: {}, @@ -301,14 +301,14 @@ export default { * @param {import('../../types/Mastodon.js').Account} account */ prefillMessageWithMention(account) { - if (!this.statusIsEmpty) { + if (!this.statusIsEmpty || this.$refs.composerInput === undefined) { return } this.$refs.composerInput.innerHTML = ` - + @${account.acct}  ` @@ -413,6 +413,7 @@ export default { this.loading = false this.replyTo = null this.$refs.composerInput.innerText = '' + this.updateStatusContent() this.attachments = {} this.$store.dispatch('refreshTimeline') } diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index fecc1a6a..6ebdbead 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -27,7 +27,7 @@ :disable-tooltip="true" :size="128" />

{{ displayName }}

@@ -57,6 +57,9 @@ {{ t('social', 'Website') }}: {{ website.value }}

+ +