Standards

This commit is contained in:
Michael 2022-11-28 04:07:25 +00:00
parent 56c4727fe1
commit f7167acc74
4 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ class FollowedTags extends BaseApi
self::setBoundaries($saved_search['id']); self::setBoundaries($saved_search['id']);
$tag = ['name' => ltrim($saved_search['term'], '#')]; $tag = ['name' => ltrim($saved_search['term'], '#')];
$hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $tag, [], true); $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $tag, [], true);
$return[] = $hashtag->toArray(); $return[] = $hashtag->toArray();
} }

View File

@ -47,7 +47,7 @@ class Tags extends BaseApi
$following = DBA::exists('search', ['uid' => $uid, 'term' => '#' . $tag]); $following = DBA::exists('search', ['uid' => $uid, 'term' => '#' . $tag]);
$term = ['term' => $tag]; $term = ['term' => $tag];
$hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], $following); $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], $following);
System::jsonExit($hashtag->toArray()); System::jsonExit($hashtag->toArray());
} }
} }

View File

@ -45,7 +45,7 @@ class Follow extends BaseApi
DBA::insert('search', $fields); DBA::insert('search', $fields);
} }
$hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $fields, [], true); $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $fields, [], true);
System::jsonExit($hashtag->toArray()); System::jsonExit($hashtag->toArray());
} }
} }

View File

@ -44,7 +44,7 @@ class Unfollow extends BaseApi
DBA::delete('search', $term); DBA::delete('search', $term);
$hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], false); $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], false);
System::jsonExit($hashtag->toArray()); System::jsonExit($hashtag->toArray());
} }
} }