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