]> git.mxchange.org Git - friendica.git/commitdiff
Standards
authorMichael <heluecht@pirati.ca>
Mon, 28 Nov 2022 04:07:25 +0000 (04:07 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Nov 2022 04:07:25 +0000 (04:07 +0000)
src/Module/Api/Mastodon/FollowedTags.php
src/Module/Api/Mastodon/Tags.php
src/Module/Api/Mastodon/Tags/Follow.php
src/Module/Api/Mastodon/Tags/Unfollow.php

index eb5e32fdc143c85264f6bea775e4db4e4471701c..bfa7db793594d5cb12debe462ea941c525efbb88 100644 (file)
@@ -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();
                }
 
index 442f0f65769e736c69d33ed00fca78a9775c0340..d38899ac0f294828030e253f49ae8c6266de93f1 100644 (file)
@@ -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());
        }
 }
index 767245b60f49ce087bdace646764d601cc607c66..22f8fa3f270d56fc80a72615f678ba0f95d46de8 100644 (file)
@@ -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());
        }
 }
index 163b65003b4285690d242e6cd7f654e62882b678..f3fbad2e5ab0e3e4cd3003c22679447e7da1f6a9 100644 (file)
@@ -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());
        }
 }