{BUGFIX} Correction d'un bug sur l'ajout d'album

This commit is contained in:
Damien Broqua 2023-10-11 07:57:55 +02:00
parent c32b182151
commit 00bb8647e1

View file

@ -181,7 +181,7 @@
</div>
</section>
<footer>
<% if ( user.mastodon.publish ) { %>
<% if ( user.mastodon && user.mastodon.publish ) { %>
<div class="field">
<label for="share">Partager sur le fédiverse</label>
<span>
@ -197,5 +197,5 @@
</main>
<script>
const canPublish = <%- user.mastodon.publish || false %>;
const canPublish = <%- (user.mastodon && user.mastodon.publish) || false %>;
</script>