Skip to content
Snippets Groups Projects
Commit fba757f5 authored by lain's avatar lain
Browse files

Merge branch 'fix/remove-retweet-button-on-private-and-direct-posts' into 'develop'

Do not show retweet button if post is followers-only or a DM

See merge request pleroma/pleroma-fe!303
parents 5cfc247c 895ef525
Branches
Tags
No related merge requests found
const RetweetButton = {
props: ['status', 'loggedIn'],
props: ['status', 'loggedIn', 'visibility'],
data () {
return {
animated: false
......
<template>
<div v-if="loggedIn">
<div v-if="loggedIn && visibility !== 'private' && visibility !== 'direct'">
<i :class='classes' class='icon-retweet rt-active' v-on:click.prevent='retweet()'></i>
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
</div>
<div v-else>
<div v-else-if="!loggedIn">
<i :class='classes' class='icon-retweet'></i>
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
</div>
......
......@@ -88,7 +88,7 @@
<i class="icon-reply" :class="{'icon-reply-active': replying}"></i>
</a>
</div>
<retweet-button :loggedIn='loggedIn' :status='status'></retweet-button>
<retweet-button :visibility='status.visibility' :loggedIn='loggedIn' :status='status'></retweet-button>
<favorite-button :loggedIn='loggedIn' :status='status'></favorite-button>
<delete-button :status='status'></delete-button>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment