]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseApi.php
Move sending follow message to remote server to Protocol class
[friendica.git] / src / Module / BaseApi.php
index e3e980286a0a781448fe35191f1846d1e0004b2e..9732fdfcd3d2aa9353dcf2952cea70ba0eac92fb 100644 (file)
@@ -293,7 +293,7 @@ class BaseApi extends BaseModule
                }
        }
 
-       public static function getContactIDForSearchterm(string $screen_name, int $cid, int $uid)
+       public static function getContactIDForSearchterm(string $screen_name = null, int $cid = null, int $uid)
        {
                if (!empty($cid)) {
                        return $cid;
@@ -314,29 +314,4 @@ class BaseApi extends BaseModule
 
                return $cid;
        }
-
-       /**
-        * Set values for RSS template
-        *
-        * @param array $arr Array to be passed to template
-        * @param int   $cid Contact ID of template
-        * @return array
-        */
-       public static function addRSSValues(array $arr, int $cid)
-       {
-               $user_info = DI::twitterUser()->createFromContactId($cid)->toArray();
-
-               $arr['$user'] = $user_info;
-               $arr['$rss'] = [
-                       'alternate'    => $user_info['url'],
-                       'self'         => DI::baseUrl() . '/' . DI::args()->getQueryString(),
-                       'base'         => DI::baseUrl(),
-                       'updated'      => DateTimeFormat::utc(null, DateTimeFormat::API),
-                       'atom_updated' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),
-                       'language'     => $user_info['lang'],
-                       'logo'         => DI::baseUrl() . '/images/friendica-32.png',
-               ];
-
-               return $arr;
-       }
 }