Conversation
4bb8868 to
e9e7165
Compare
bff78d8 to
9fba27b
Compare
|
I believe I made all the changes required for WoltLab/WCF, so this one is ready to review. |
|
I do not like the use of the class
The naming ain't perfect, but it is close enough to both preserve backwards compatibility and enables cleaner code by avoding magic numbers. |
Should I preserve the |
Can't we just drop the |
For backwards compatibility the existing methods must not perform any filtering, because in some places they are used to check whether the other user is blocked without caring exactly about what type of block. e.g.: WCF/com.woltlab.wcf/templates/user.tpl Lines 52 to 54 in 9817fda WCF/com.woltlab.wcf/templates/user.tpl Line 49 in 9817fda Even if IMO an explicit |
|
Okay, then I would like to suggest to keep the method |
Indeed. This might even leak some data that is considered private. I'll fix this and will think about the rest. |
|
Okay, I looked into this again. I don't think we are able to easily get rid of the magic number in templates:
Currently this exclusion is performed by explicitly passing the Thus the choice is between:
|
It still uses the legacy jQuery based JavaScript which does not work well with the new `type` parameter. Additionally it distracts from more useful buttons. It's not like users are going to ignore other users en masse.
The type of ignore is not relevant when checking whether one is ignored by another user. In fact it might leak information that the ignoror might not want to share with the ignoree.
e1f494d to
3e7217b
Compare
|
@TimWolla You can add return types to the new methods in the action class. |
I feel that |
ghost
left a comment
There was a problem hiding this comment.
I think that instead of the delete icon on the page listing the currently blocked users, the dialog should be shown for also being able to change the setting.
I'll create a follow up for this: #4140 |
Still a draft, because the
typeneeds to be integrated into the consumers.For now only the blocking UI has been adjusted.
Resolves #3981