Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into froth
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sam Therapy 2022-05-09 10:47:22 -05:00
commit ee7522671c
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
7 changed files with 19 additions and 12 deletions

View File

@ -14,10 +14,11 @@
/>
</router-link>
<RichContent
v-if="user"
class="username"
:title="'@'+user.screen_name_ui"
:html="htmlTitle"
:emoji="user.emoji"
:emoji="user.emoji || []"
/>
</div>
</template>

View File

@ -66,7 +66,7 @@ const ImageCropper = {
}
},
methods: {
unmounted () {
destroy () {
if (this.cropper) {
this.cropper.destroy()
}

View File

@ -28,6 +28,10 @@ import './rich_content.scss'
*/
export default {
name: 'RichContent',
components: {
MentionsLine,
HashtagLink
},
props: {
// Original html content
html: {
@ -86,7 +90,8 @@ export default {
if (!encounteredTextReverse) {
lastTags.push(linkData)
}
return <HashtagLink { ...linkData }/>
const { url, tag, content } = linkData
return <HashtagLink url={url} tag={tag} content={content}/>
}
const renderMention = (attrs, children) => {

View File

@ -15,14 +15,14 @@
:emoji="status.emojis"
/>
<button
v-if="longSubject && showingLongSubject"
v-show="longSubject && showingLongSubject"
class="button-unstyled -link tall-subject-hider"
@click.prevent="toggleShowingLongSubject"
>
{{ $t("status.hide_full_subject") }}
</button>
<button
v-else-if="longSubject"
v-show="longSubject && !showingLongSubject"
class="button-unstyled -link tall-subject-hider"
@click.prevent="toggleShowingLongSubject"
>
@ -34,7 +34,7 @@
class="text-wrapper"
>
<button
v-if="hideTallStatus"
v-show="hideTallStatus"
class="button-unstyled -link tall-status-hider"
:class="{ '-focused': focused }"
@click.prevent="toggleShowMore"
@ -54,7 +54,7 @@
/>
<button
v-if="hideSubjectStatus"
v-show="hideSubjectStatus"
class="button-unstyled -link cw-status-hider"
@click.prevent="toggleShowMore"
>
@ -85,7 +85,7 @@
/>
</button>
<button
v-if="showingMore && !fullContent"
v-show="showingMore && !fullContent"
class="button-unstyled -link status-unhider"
@click.prevent="toggleShowMore"
>

View File

@ -50,7 +50,7 @@ export default {
activeIndex () {
// In case of controlled component
if (this.activeTab) {
return this.slots().findIndex(slot => this.activeTab === slot.props.key)
return this.slots().findIndex(slot => slot && slot.props && this.activeTab === slot.props.key)
} else {
return this.active
}

View File

@ -55,7 +55,10 @@ export const settingsMap = {
get: 'pleroma.allow_following_move',
set: 'allow_following_move'
},
'discoverable': 'source.discoverable',
'discoverable': {
get: 'source.pleroma.discoverable',
set: 'discoverable'
},
'hideFavorites': {
get: 'pleroma.hide_favorites',
set: 'hide_favorites'

View File

@ -308,10 +308,8 @@ describe('RichContent', () => {
'<a href="http://macrochan.org/images/N/H/NHCMDUXJPPZ6M3Z2CQ6D2EBRSWGE7MZY.jpg" target="_blank">',
'NHCMDUXJPPZ6M3Z2CQ6D2EBRSWGE7MZY.jpg</a>',
' <hashtag-link-stub url="https://shitposter.club/tag/nou" content="#nou" tag="nou">',
'#nou',
'</hashtag-link-stub>',
' <hashtag-link-stub url="https://shitposter.club/tag/screencap" content="#screencap" tag="screencap">',
'#screencap',
'</hashtag-link-stub>',
' </p>'
].join('')