Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The social app is not working correctly #1876

Open
SchBenedikt opened this issue Jan 8, 2024 · 7 comments
Open

The social app is not working correctly #1876

SchBenedikt opened this issue Jan 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@SchBenedikt
Copy link

Describe the bug
We have installed the Social app on our Nextcloud instance. You can post messages and also see the messages yourself. The only thing that doesn’t work is the profile tab where the profile should be displayed. There’s just a loading icon here.
What could be the reason?

Expected behavior
A loading symbol is only displayed for the "Profile" field; sometimes nothing at all.

Screenshots
image

Client details:

  • App-Version: 0.6.1
  • NC-Version: 28.0.1
@SchBenedikt SchBenedikt added the bug Something isn't working label Jan 8, 2024
@joshtrichards
Copy link
Member

  • Any output in you browser console when this happens?
  • Also anything interesting in the browser console network tab?

@SchBenedikt
Copy link
Author

Nothing strange appears in the browser console in Network Tab. I have attached the log from the console here again.
nc-log.log

@SergSel2006
Copy link

SergSel2006 commented Jan 20, 2024

I have the same problem But with different Nextcloud version 27.1.5, but app version is the same.
Logs are familiar with the author logs.
console-export-2024-1-20_21-27-26.txt
Additional information: Nextcloud is Nextcloud AIO Container

@SergSel2006
Copy link

For some reason this issue disappears after an app reset.
Looks like there's no implemented way of migration from legacy data.

@SchBenedikt
Copy link
Author

I tried that too; I also tried to install another version, but unfortunately it didn't work.

@chenasraf
Copy link

chenasraf commented Feb 15, 2024

I'm getting an error trying to load any profile, in the dev console:

TypeError: Cannot read properties of undefined (reading 'acct')
    at i.<anonymous> (Profile.vue:1:390)
    at e._render (vue.runtime.esm.js:2684:28)
    at i.r (vue.runtime.esm.js:3875:27)
    at e.get (vue.runtime.esm.js:3446:33)
    at e.run (vue.runtime.esm.js:3522:30)
    at kr (vue.runtime.esm.js:4121:17)
    at Array.<anonymous> (vue.runtime.esm.js:3143:20)
    at _n (vue.runtime.esm.js:3065:16)

Which points to this file:

var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"social__wrapper",class:{'icon-loading': !_vm.accountLoaded}},[(_vm.accountLoaded && _vm.accountInfo)?_c('ProfileInfo',{attrs:{"uid":_vm.uid}}):_vm._e(),_vm._v(" "),(_vm.accountInfo && _vm.$route.name === 'profile')?_c('Composer',{attrs:{"initial-mention":_vm.accountInfo.acct === _vm.currentAccount.acct ? null : _vm.accountInfo,"default-visibility":"direct"}}):_vm._e(),_vm._v(" "),(_vm.accountLoaded && _vm.accountInfo && _vm.isLocal)?_c('router-view',{attrs:{"name":"details"}}):_vm._e(),_vm._v(" "),(_vm.accountLoaded && !_vm.accountInfo)?_c('NcEmptyContent',{attrs:{"title":_vm.t('social', 'User not found'),"description":_vm.t('social', 'Sorry, we could not find the account of {userId}', { userId: _vm.uid })},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('img',{staticClass:"icon-illustration",attrs:{"src":_vm.emptyContentImage,"alt":""}})]},proxy:true}],null,false,2365308424)}):_vm._e()],1)
}
var staticRenderFns = []

export { render, staticRenderFns }

Search for _vm.currentAccount.acct ?

NC 28 (AIO latest + manual upgrade to 28)
Happened on 27 as well, before the upgrade

Tried reverting all migrations, re-creating the app state from the start - same result

Also when trying to follow NextCloud mastodon, I get this:

account.js:214 [ERROR] social: Failed to follow user nextcloud@mastodon.xyz 
{app: 'social', uid: 'xxx', level: '2', error: TypeError: Cannot read properties of undefined (reading '__ob__')
    at Fe (https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:980108)
    at ge.followAccount (https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1381649)
    at https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1349171
    at https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1350701
    at Array.forEach (<anonymous>)
    at https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1350680
    at ge._withCommit (https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1352529)
    at ge.commit (https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1350654)
    at Object.commit (https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1346609)
    at https://xxx/custom_apps/social/js/social-social.js?v=5344cd97-4:2:1384998

@Blintmester
Copy link

Blintmester commented Feb 28, 2024

I have the same issue with nc 28.0.2 (on TrueNAS SCALE), and social app 0.6.1.
When I trying to follow NextCloud mastodon, I get the same error, as @chenasraf.
When trying to open profile I got this error:

TypeError: t.currentAccount is undefined
    R Profile.vue:1
    VueJS 26
    init vue-router.esm.js:3005
    init vue-router.esm.js:3004
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2402
    r vue-router.esm.js:2084
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    Rn vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2396
    r vue-router.esm.js:2084
    r vue-router.esm.js:2088
    h vue-router.esm.js:2384
    n vue-router.esm.js:2162
    h vue-router.esm.js:2362
    r vue-router.esm.js:2087
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    Rn vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2392
    transitionTo vue-router.esm.js:2260
    push vue-router.esm.js:2606
    push vue-router.esm.js:3039
    g vue-router.esm.js:1139
    onClick NcAppNavigationItem.js:2
    click NcAppNavigationItem.js:2
    VueJS 3

I tried to reset the app, but that didn't helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants