diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-12 18:01:35 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-12 18:01:35 +0200 |
commit | 6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd (patch) | |
tree | 505822b74922fded408f841c06bfc649063e044f /Zotlabs/Lib/Libzot.php | |
parent | 3233d5485f2b4284e3c386d51b540f15563955ce (diff) | |
download | volse-hubzilla-6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd.tar.gz volse-hubzilla-6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd.tar.bz2 volse-hubzilla-6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd.zip |
deprecate ud_flags and ud_arr in import_xchan()
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 9a6b64c75..23f3ef08f 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -328,7 +328,7 @@ class Libzot { logger('zot-info: ' . print_r($record, true), LOGGER_DATA, LOG_DEBUG); - $x = self::import_xchan($record['data'], (($force) ? UPDATE_FLAGS_FORCED : UPDATE_FLAGS_UPDATED)); + $x = self::import_xchan($record['data']); if (!$x['success']) { return false; @@ -635,21 +635,13 @@ class Libzot { * all internal data structures which need to be updated as a result. * * @param array $arr => json_decoded discovery packet - * @param int $ud_flags - * Determines whether to create a directory update record if any changes occur, default is UPDATE_FLAGS_UPDATED - * $ud_flags = UPDATE_FLAGS_FORCED indicates a forced refresh where we unconditionally create a directory update record - * this typically occurs once a month for each channel as part of a scheduled ping to notify the directory - * that the channel still exists - * @param array $ud_arr - * If set [typically by update_directory_entry()] indicates a specific update table row and more particularly - * contains a particular address (ud_addr) which needs to be updated in that table. - * + * @return array An associative array with: * * \e boolean \b success boolean true or false * * \e string \b message (optional) error string only if success is false */ - static function import_xchan($arr, $ud_flags = 0, $ud_arr = null) { + static function import_xchan($arr) { $ret = [ 'success' => false, |