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