Browse Source

don't kill when no result is found, this may break communication, thanks to @annando explaining it

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/3254/head
Roland Häder 5 years ago
parent
commit
89bd080e7e
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
  1. 7
      include/dfrn.php

7
include/dfrn.php

@ -915,12 +915,7 @@ class dfrn {
intval($owner["uid"]),
dbesc(normalise_link($mention)));
if (!dbm::is_result($r)) {
/// @TODO Maybe some logging?
killme();
}
if ($r[0]["forum"] OR $r[0]["prv"]) {
if (dbm::is_result($r) AND ($r[0]["forum"] OR $r[0]["prv"])) {
xml::add_element($doc, $entry, "link", "", array("rel" => "mentioned",
"ostatus:object-type" => ACTIVITY_OBJ_GROUP,
"href" => $mention));

Loading…
Cancel
Save