Bugfix for OStatus to prevent sending messages from wrong senders
This commit is contained in:
parent
d408cea871
commit
1c82e9f209
3 changed files with 1260 additions and 1232 deletions
1259
include/dfrn.php
1259
include/dfrn.php
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1312,6 +1312,10 @@ function ostatus_add_author($doc, $owner) {
|
||||||
function ostatus_entry($doc, $item, $owner, $toplevel = false, $repeat = false) {
|
function ostatus_entry($doc, $item, $owner, $toplevel = false, $repeat = false) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
|
if (($item["id"] != $item["parent"]) AND (normalise_link($item["author-link"]) != normalise_link($owner["url"]))) {
|
||||||
|
logger("OStatus entry is from author ".$owner["url"]." - not from ".$item["author-link"].". Quitting.", LOGGER_DEBUG);
|
||||||
|
}
|
||||||
|
|
||||||
$is_repeat = false;
|
$is_repeat = false;
|
||||||
|
|
||||||
/* if (!$repeat) {
|
/* if (!$repeat) {
|
||||||
|
|
Loading…
Reference in a new issue