{BUGFIX} Correction d'un bug sur l'ajout d'album
This commit is contained in:
parent
c32b182151
commit
00bb8647e1
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
Loading…
Reference in a new issue