Skip to content

Commit dbc7a5a

Browse files
committed
fix: remove bridgy json request
the bridgy json request does not work with bridgy fed see issue #8
1 parent 57d604e commit dbc7a5a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

utils/receiver.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ public function createWebmention()
8383
public function getTransformedSourceUrl(string $url): string
8484
{
8585
if (V::url($url)) {
86-
if (strpos($url, 'brid.gy') !== false) {
87-
$bridyResult = Remote::get($url . '?format=json');
88-
$bridyJson = json_decode($bridyResult->content());
89-
$authorUrls = $bridyJson->properties->author[0]->properties->url;
90-
91-
foreach ($authorUrls as $authorUrl) {
92-
if ($this->isKnownNetwork($authorUrl)) {
93-
return $authorUrl;
94-
}
95-
}
96-
}
97-
9886
return $url;
9987
}
10088

0 commit comments

Comments
 (0)