- echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
- <reputation>
- <url>$url</url>
- <rating>$reputation</rating>
- <description>$text</description>
- </reputation>
- ";
- exit();
- // NOTREACHED
- } else {
- // Update the writable flag if it changed
- Logger::debug('post request feed', ['post' => $_POST]);
- if ($dfrn_version >= 2.21) {
- if ($perm === 'rw') {
- $writable = 1;
- } else {
- $writable = 0;
- }
-
- if ($writable != $contact['writable']) {
- q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d",
- intval($writable),
- intval($contact_id)
- );
- }
+ if ($writable != $contact['writable']) {
+ q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d",
+ intval($writable),
+ intval($contact_id)
+ );