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

View file

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