From a678775056f778fbb04ce3f10e611d3625fbb560 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 10 May 2021 16:21:37 +0200 Subject: [PATCH] Document the $type parameter for UserProfile::getIgnoredUsers() (#172) Resolves #170 Co-authored-by: Matthias Schmidt --- docs/migration/wsc53/php.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/migration/wsc53/php.md b/docs/migration/wsc53/php.md index a20848b3..ae2b79b4 100644 --- a/docs/migration/wsc53/php.md +++ b/docs/migration/wsc53/php.md @@ -118,3 +118,11 @@ See [WoltLab/WCF#4001](https://github.com/WoltLab/WCF/pull/4001) for details. Currently, several of the (user group) options installed by our packages use the `textarea` option type and split its value by linebreaks to get a list of items, for example for allowed file extensions. To improve the user interface when setting up the value of such options, we have added the `lineBreakSeparatedText` option type as a drop-in replacement where the individual items are explicitly represented as distinct items in the user interface. + +## Ignoring of Users + +WoltLab Suite 5.4 distinguishes between blocking direct contact only and hiding all contents when ignoring users. +To allow for detecting the difference, the `UserProfile::getIgnoredUsers()` and `UserProfile::isIgnoredUser()` methods received a new `$type` parameter. +Pass either `UserIgnore::TYPE_BLOCK_DIRECT_CONTACT` or `UserIgnore::TYPE_HIDE_MESSAGES` depending on whether the check refers to a non-directed usage or content. + +See [WoltLab/WCF#4064](https://github.com/WoltLab/WCF/pull/4064) and [WoltLab/WCF#3981](https://github.com/WoltLab/WCF/issues/3981) for details. -- 2.20.1