Standards
This commit is contained in:
parent
56c4727fe1
commit
f7167acc74
|
@ -67,7 +67,7 @@ class FollowedTags extends BaseApi
|
|||
self::setBoundaries($saved_search['id']);
|
||||
$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();
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class Tags extends BaseApi
|
|||
$following = DBA::exists('search', ['uid' => $uid, '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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ class Follow extends BaseApi
|
|||
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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ class Unfollow extends BaseApi
|
|||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue