https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbad87
)
Simplify check
author
Michael
<heluecht@pirati.ca>
Thu, 17 Sep 2020 13:13:40 +0000
(13:13 +0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 17 Sep 2020 13:13:40 +0000
(13:13 +0000)
src/Protocol/Feed.php
patch
|
blob
|
history
diff --git
a/src/Protocol/Feed.php
b/src/Protocol/Feed.php
index
f414a3c
..
103f7a9
100644
(file)
--- a/
src/Protocol/Feed.php
+++ b/
src/Protocol/Feed.php
@@
-563,7
+563,7
@@
class Feed
$data_text = strip_tags(trim($data['text'] ?? ''));
$item_body = strip_tags(trim($item['body'] ?? ''));
- if (
!empty($data['text']) && (($data_text == $item_body) || strstr($item_body, $data_text)
)) {
+ if (
($data_text == $item_body) || strstr($item_body, $data_text
)) {
$data['text'] = '';
}