{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>
|
</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>
|
Loading…
Reference in a new issue