]> git.mxchange.org Git - friendica.git/blobdiff - mod/delegate.php
Better content detection for posts to Twitter
[friendica.git] / mod / delegate.php
index 4d35d46c70ca8bd5c9feaeb1e8a68c4c0f58b5a4..4bccf1142ae0884f61285207e960e3ce9c5cf804 100644 (file)
@@ -35,10 +35,7 @@ function delegate_content(App $a) {
                                dbesc(normalise_link(System::baseUrl() . '/profile/' . $r[0]['nickname']))
                        );
                        if (dbm::is_result($r)) {
-                               q("insert into manage ( uid, mid ) values ( %d , %d ) ",
-                                       intval($a->argv[2]),
-                                       intval(local_user())
-                               );
+                               dba::insert('manage', array('uid' => $a->argv[2], 'mid' => local_user()));
                        }
                }
                goaway(System::baseUrl() . '/delegate');