isolate direction of username within modlog #5422

Merged
Jan200101 merged 2 commits from PR/LTR-mod-log into V3/develop 2021-12-25 17:34:02 +01:00
Jan200101 commented 2021-10-25 20:54:53 +02:00 (Migrated from github.com)

Came up on the Discord as something that could possibly be implemented

Before this PR:
image

After this PR:
image

Came up on the Discord as something that could possibly be implemented Before this PR: ![image](https://user-images.githubusercontent.com/15076013/138753456-d8950bdf-3cab-406f-b2fb-a19d2429992a.png) After this PR: ![image](https://user-images.githubusercontent.com/15076013/138753483-0c9a13eb-57fe-4ab4-9a96-ece428738e24.png)
Jan200101 commented 2021-10-25 21:09:41 +02:00 (Migrated from github.com)

Force pushed first time to correct the styling checks

Force pushed the second time after I was asked if the second LEFT-TO-RIGHT was really needed, which I had some hours ago concluded it was but came to realize it really isn't

Force pushed first time to correct the styling checks Force pushed the second time after I was asked if the second LEFT-TO-RIGHT was really needed, which I had some hours ago concluded it was but came to realize it really isn't
mathstrains21 (Migrated from github.com) reviewed 2021-10-25 21:09:43 +02:00
Jackenmen (Migrated from github.com) requested changes 2021-12-25 02:30:24 +01:00
Jackenmen (Migrated from github.com) left a comment

This doesn't work in embeds:
image
image

From my testing, putting LTR override at the beginning of the text instead works just fine so I think this should be a good solution:
image

It could make sense to also add this LTR override for the moderator though, it is way less likely to be an issue for a moderator's name.

This doesn't work in embeds: ![image](https://user-images.githubusercontent.com/6032823/147375468-680a383a-3317-4af6-bcce-d58a78cd6b3f.png) ![image](https://user-images.githubusercontent.com/6032823/147375467-0108c7c4-86e9-43f4-b1ab-4da511bef1f1.png) From my testing, putting LTR override at the beginning of the text instead works just fine so I think this should be a good solution: ![image](https://user-images.githubusercontent.com/6032823/147375474-3f0f30cb-4b2a-438b-80a0-9794516e8882.png) It *could* make sense to also add this LTR override for the moderator though, it is way less likely to be an issue for a moderator's name.
@ -467,10 +464,21 @@ class Case:
translated = _("Unknown or Deleted User")
user = f"[{translated}] ({self.user})"
else:
Jackenmen (Migrated from github.com) commented 2021-12-25 02:28:27 +01:00

This needs to be updated as well.

This needs to be updated as well.
Jackenmen commented 2021-12-25 16:26:24 +01:00 (Migrated from github.com)

Sorry, I did not realize my screenshot contained an example with two LTR overrides rather than just one at the beginning (which works fine as well). I just removed the second LTR override myself in the commit I just pushed.

Sorry, I did not realize my screenshot contained an example with two LTR overrides rather than just one at the beginning (which works fine as well). I just removed the second LTR override myself in the commit I just pushed.
Jan200101 commented 2021-12-25 17:17:32 +01:00 (Migrated from github.com)

image
Talked about this on Discord

Isolating the name should keep its direction intact while allowing the format of name#discrim (id) to stay intact

![image](https://user-images.githubusercontent.com/15076013/147389160-832942f6-5220-4c46-aa57-d20f5535806d.png) Talked about this on Discord Isolating the name should keep its direction intact while allowing the format of `name#discrim (id)` to stay intact
Jackenmen (Migrated from github.com) approved these changes 2021-12-25 17:30:44 +01:00
Jackenmen (Migrated from github.com) left a comment

Works great now, thanks for the PR!

cat-xmas

Works great now, thanks for the PR! ![cat-xmas](https://user-images.githubusercontent.com/6032823/147389441-baba55fe-7335-4cfb-846b-c652108b4757.gif)
red-githubbot[bot] commented 2021-12-25 17:34:05 +01:00 (Migrated from github.com)

Thanks Jan200101 for the PR 🎉. I'm working now to backport this PR to: 3.4.

Thanks Jan200101 for the PR 🎉. I'm working now to backport this PR to: 3.4.
red-githubbot[bot] commented 2021-12-25 17:34:16 +01:00 (Migrated from github.com)

#5488 is a backport of this pull request to Red 3.4.

#5488 is a backport of this pull request to [Red 3.4](https://github.com/Cog-Creators/Red-DiscordBot/tree/3.4).
Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5422
No description provided.