aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connedit.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-15 08:42:51 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-15 08:42:51 +0200
commit9a0dff08bc488646602424fbd030bfd097e8cda9 (patch)
treee32a25fe7a570573ffee617592678a420bb7ee4c /Zotlabs/Module/Connedit.php
parent24569a18dbb423f47429905cb38282813b0a6462 (diff)
parent77dedf664846c9740cb66bf2a95c95c6522c0497 (diff)
downloadvolse-hubzilla-9a0dff08bc488646602424fbd030bfd097e8cda9.tar.gz
volse-hubzilla-9a0dff08bc488646602424fbd030bfd097e8cda9.tar.bz2
volse-hubzilla-9a0dff08bc488646602424fbd030bfd097e8cda9.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-rw-r--r--Zotlabs/Module/Connedit.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php
index 33deac4c8..3feba5370 100644
--- a/Zotlabs/Module/Connedit.php
+++ b/Zotlabs/Module/Connedit.php
@@ -16,14 +16,14 @@ require_once('include/zot.php');
require_once('include/widgets.php');
require_once('include/photos.php');
-/* @brief Initialize the connection-editor
- *
- *
- */
-
class Connedit extends \Zotlabs\Web\Controller {
+ /* @brief Initialize the connection-editor
+ *
+ *
+ */
+
function init() {
if(! local_channel())
@@ -51,7 +51,7 @@ class Connedit extends \Zotlabs\Web\Controller {
*
*/
- function post() {
+ function post() {
if(! local_channel())
return;
@@ -357,7 +357,7 @@ class Connedit extends \Zotlabs\Web\Controller {
*
*/
- function get() {
+ function get() {
$sort_type = 0;
$o = '';
@@ -418,7 +418,13 @@ class Connedit extends \Zotlabs\Web\Controller {
goaway(z_root() . '/connedit/' . $contact_id);
}
-
+ if($cmd === 'resetphoto') {
+ q("update xchan set xchan_photo_date = '2001-01-01 00:00:00' where xchan_hash = '%s' limit 1",
+ dbesc($orig_record[0]['xchan_hash'])
+ );
+ $cmd = 'refresh';
+ }
+
if($cmd === 'refresh') {
if($orig_record[0]['xchan_network'] === 'zot') {
if(! zot_refresh($orig_record[0],\App::get_channel()))