Bugfix for OStatus to prevent sending messages from wrong senders

This commit is contained in:
Michael Vogel 2016-02-05 21:31:11 +01:00
parent d408cea871
commit 1c82e9f209
3 changed files with 1260 additions and 1232 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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) {