fix actor type not setting

This commit is contained in:
Henry Jameson 2026-01-07 16:45:10 +02:00
commit 0492a8d6a0
3 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1 @@
fixed being unable to set actor type from profile page

View file

@ -122,6 +122,8 @@ export default {
data () {
const user = this.$store.getters.findUser(this.userId)
console.log('LOL', JSON.parse(JSON.stringify(user)))
return {
followRequestInProgress: false,
muteExpiryAmount: 0,
@ -466,8 +468,8 @@ export default {
show_birthday: !!this.newShowBirthday,
}
if (this.actorType) {
params.actor_type = this.actorType
if (this.newActorType) {
params.actor_type = this.newActorType
}
if (this.newAvatarFile !== null) {

View file

@ -208,7 +208,7 @@
</span>
<span
v-if="user.actor_type === 'Group'"
class="alert user-role"
class="alert neutral user-role"
>
{{ $t('user_card.group') }}
</span>