https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
b7573a9
)
Merge pull request #6650 from rabuzarus/20190213_-_fix_frio_linkpreview_for_display_m...
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Wed, 13 Feb 2019 21:38:27 +0000
(16:38 -0500)
committer
GitHub
<noreply@github.com>
Wed, 13 Feb 2019 21:38:27 +0000
(16:38 -0500)
bugfix: linkPreview - remove s flag from regexp because FF don't support it
src/Protocol/ActivityPub/Processor.php
patch
|
blob
|
history
diff --git
a/src/Protocol/ActivityPub/Processor.php
b/src/Protocol/ActivityPub/Processor.php
index
25f064f
..
c3b41a1
100644
(file)
--- a/
src/Protocol/ActivityPub/Processor.php
+++ b/
src/Protocol/ActivityPub/Processor.php
@@
-692,7
+692,7
@@
class Processor
$kept_mentions = [];
// Extract one prepended mention at a time from the body
- while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mi', $body, $matches)) {
+ while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mi
s
', $body, $matches)) {
if (!in_array($matches[2], $implicit_mentions) ) {
$kept_mentions[] = $matches[1];
}