Only offer "ignore thread" when there is a need for this
This commit is contained in:
parent
530cfba71e
commit
2bbfbd57b0
1 changed files with 10 additions and 8 deletions
|
@ -300,14 +300,16 @@ class Post
|
||||||
if ($this->isToplevel()) {
|
if ($this->isToplevel()) {
|
||||||
if(local_user()) {
|
if(local_user()) {
|
||||||
$ignored = PostModel\ThreadUser::getIgnored($item['uri-id'], local_user());
|
$ignored = PostModel\ThreadUser::getIgnored($item['uri-id'], local_user());
|
||||||
$ignore = [
|
if ($item['mention'] || $ignored) {
|
||||||
'do' => DI::l10n()->t("ignore thread"),
|
$ignore = [
|
||||||
'undo' => DI::l10n()->t("unignore thread"),
|
'do' => DI::l10n()->t("ignore thread"),
|
||||||
'toggle' => DI::l10n()->t("toggle ignore status"),
|
'undo' => DI::l10n()->t("unignore thread"),
|
||||||
'classdo' => $ignored ? "hidden" : "",
|
'toggle' => DI::l10n()->t("toggle ignore status"),
|
||||||
'classundo' => $ignored ? "" : "hidden",
|
'classdo' => $ignored ? "hidden" : "",
|
||||||
'ignored' => DI::l10n()->t('ignored'),
|
'classundo' => $ignored ? "" : "hidden",
|
||||||
];
|
'ignored' => DI::l10n()->t('ignored'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
if ($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) {
|
if ($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) {
|
||||||
if ($origin) {
|
if ($origin) {
|
||||||
|
|
Loading…
Reference in a new issue