mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Refine OAuth flow
This commit is contained in:
parent
78a85df86b
commit
7975bc244d
8 changed files with 134 additions and 32 deletions
|
@ -2914,11 +2914,11 @@ class Item
|
|||
$data['description'] = '';
|
||||
}
|
||||
|
||||
if (!empty($data['author_name']) && !empty($data['provider_name'])) {
|
||||
if (($data['author_name'] ?? '') == ($data['provider_name'] ?? '')) {
|
||||
$data['author_name'] = '';
|
||||
}
|
||||
|
||||
if (!empty($data['author_url']) && !empty($data['provider_url'])) {
|
||||
if (($data['author_url'] ?? '') && ($data['provider_url'] ?? '')) {
|
||||
$data['author_url'] = '';
|
||||
}
|
||||
} elseif (preg_match("/.*(\[attachment.*?\].*?\[\/attachment\]).*/ism", $body, $match)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue