Skip to content

Commit

Permalink
Fix #3104
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 16, 2021
1 parent 6298735 commit 19762bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/client/app/admin/views/abuse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<section class="fit-top">
<sequential-entrance animation="entranceFromTop" delay="25">
<div v-for="report in userReports" :key="report.id" class="haexwsjc">
<div>{{ $t('target') }}: <a :href="report.user | userPage(null, true)">{{ report.user.username }}</a></div>
<div>{{ $t('reporter') }}: <a :href="report.reporter | userPage(null, true)">{{ report.reporter.username }}</a></div>
<div>{{ $t('target') }}: <a :href="report.user | userPage(null, true)"><mk-acct :user="report.user" :simple="true"/></a></div>
<div>{{ $t('reporter') }}: <a :href="report.reporter | userPage(null, true)"><mk-acct :user="report.reporter" :simple="true"/></a></div>
<div v-if="(report.notes || []).length > 0">{{ $t('notes') }}:
<span v-for="note in report.notes || []" :key="note.id" style="margin-right: 1em">
<a :href="`/notes/${note.id}`">{{ note.id }}</a>
Expand Down
8 changes: 4 additions & 4 deletions src/client/app/common/views/components/acct.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<span class="mk-acct" v-once>
<span class="name">@{{ user.username }}</span>
<span class="host" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
<fa v-if="user.isLocked == true" class="locked" icon="lock" fixed-width/>
<fa v-if="user.refuseFollow == true" class="refuseFollow" icon="ban" fixed-width/>
<fa v-if="user.noFederation == true" class="no-federation" icon="heart" title="No federation" fixed-width/>
<fa v-if="!simple && user.isLocked == true" class="locked" icon="lock" fixed-width/>
<fa v-if="!simple && user.refuseFollow == true" class="refuseFollow" icon="ban" fixed-width/>
<fa v-if="!simple && user.noFederation == true" class="no-federation" icon="heart" title="No federation" fixed-width/>
</span>
</template>

Expand All @@ -13,7 +13,7 @@ import Vue from 'vue';
import { host } from '../../../config';
import { toUnicode } from 'punycode/';
export default Vue.extend({
props: ['user', 'detail'],
props: ['user', 'detail', 'simple'],
data() {
return {
host: toUnicode(host)
Expand Down

0 comments on commit 19762bb

Please sign in to comment.