mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix wrong empty profile stream message (#5877)
* Fix wrong empty profile stream message * Update CHANGELOG.md Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
3209014db1
commit
634790c5ef
@ -7,6 +7,7 @@ HumHub Changelog
|
||||
- Fix #5856: Fix SMTPS Config Migration
|
||||
- Fix #5854: Don't validate user language on approve
|
||||
- Fix #5875: LDAP user creation broken without email address
|
||||
- Fix #5877: Fix wrong empty profile stream message
|
||||
- Fix #5874: Fix adding licence key after removing it from marketplace
|
||||
|
||||
|
||||
|
@ -672,7 +672,7 @@ humhub.module('stream.Stream', function (module, require, $) {
|
||||
};
|
||||
|
||||
Stream.prototype.hasActiveFilters = function () {
|
||||
return this.filter && this.filter.getActiveFilterCount({exclude: ['sort']}) > 0;
|
||||
return this.filter && this.filter.getActiveFilterCount({exclude: ['sort', 'scope']}) > 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -50,14 +50,12 @@ class StreamViewer extends BaseStreamViewer
|
||||
$this->messageStreamEmptyCss = 'placeholder-empty-stream';
|
||||
}
|
||||
|
||||
if (empty($this->messageStreamEmpty)) {
|
||||
if ($canCreatePost) {
|
||||
$this->messageStreamEmpty = $this->contentContainer->is(Yii::$app->user->getIdentity())
|
||||
? Yii::t('UserModule.profile', '<b>Your profile stream is still empty</b><br>Get started and post something...')
|
||||
: Yii::t('UserModule.profile', '<b>This profile stream is still empty</b><br>Be the first and post something...');
|
||||
} else {
|
||||
$this->messageStreamEmpty = Yii::t('UserModule.profile', '<b>This profile stream is still empty!</b>');
|
||||
}
|
||||
if ($canCreatePost) {
|
||||
$this->messageStreamEmpty = $this->contentContainer->is(Yii::$app->user->getIdentity())
|
||||
? Yii::t('UserModule.profile', '<b>Your profile stream is still empty</b><br>Get started and post something...')
|
||||
: Yii::t('UserModule.profile', '<b>This profile stream is still empty</b><br>Be the first and post something...');
|
||||
} else {
|
||||
$this->messageStreamEmpty = Yii::t('UserModule.profile', '<b>This profile stream is still empty!</b>');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user