-
Notifications
You must be signed in to change notification settings - Fork 508
🏷️ /call/ reference provider #8001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🏷️ /call/ reference provider #8001
Conversation
|
42262d7 to
1481a19
Compare
| if (str_starts_with($referenceText, $indexPhpUrl)) { | ||
| $urlOfInterest = substr($referenceText, strlen($indexPhpUrl)) ?: null; | ||
| } elseif (str_starts_with($referenceText, $rewriteUrl)) { | ||
| $urlOfInterest = substr($referenceText, strlen($rewriteUrl)) ?: null; | ||
| } else { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe will be good to put this in a separated method to make this method more simple.
Suggestion: extractUrlOfInterest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really a fan of these micro functions where you have to jump around to see what the bigger picture does
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
152edb1 to
0c7599f
Compare
|
/backport to stable25 |
Fix #7988
/call/…
/call/…#message_…
To get a closer preview the user needs to be a participant (open conversation or public link are not enough, in those cases the above information is shown)