1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 09:17:03 +00:00

Update PostComponent, fix MomentUI like counter

This commit is contained in:
Daniel Supernault 2021-07-06 23:40:08 -06:00
parent 2e54643760
commit 42c6121ab9
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -323,7 +323,7 @@
</div> </div>
<div class="like-count font-weight-bold mt-2 rounded border" style="cursor:pointer;" v-on:click="likesModal"> <div class="like-count font-weight-bold mt-2 rounded border" style="cursor:pointer;" v-on:click="likesModal">
{{ownerOrAdmin() ? (status.liked_by.total_count + 1) : 0}} {{ownerOrAdmin == true ? (status.liked_by.total_count + 1) : 0}}
</div> </div>
</div> </div>
<div class="text-center"> <div class="text-center">
@ -898,6 +898,10 @@ export default {
return; return;
} }
if(u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') {
this.layout = 'moment';
}
if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') { if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') {
this.layout = 'metro'; this.layout = 'metro';
} }