Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
Poduptime
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diasporg
Poduptime
Commits
d56169be
Commit
d56169be
authored
Nov 25, 2019
by
dmorley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remote
parent
90d79e48
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
365 additions
and
6 deletions
+365
-6
CHANGELOG.md
CHANGELOG.md
+1
-0
composer.lock
composer.lock
+360
-1
db/add.php
db/add.php
+0
-1
db/update-remote-data.php
db/update-remote-data.php
+4
-4
No files found.
CHANGELOG.md
View file @
d56169be
...
...
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog] and this project adheres to [Semantic
### Deprecated
### Removed
### Fixed
-
update remote pods fixed
### Security
## [2.6.2] - 2019-11-24
...
...
composer.lock
View file @
d56169be
This diff is collapsed.
Click to expand it.
db/add.php
View file @
d56169be
...
...
@@ -135,6 +135,5 @@ if (!$stop) {
echo
'Data successfully inserted! Your pod will be checked and live on the list in a few hours!'
;
}
else
{
echo
'Could not validate your pod, check your setup!<br>Take a look at your <a href="'
.
$nodeinfo_url
.
'">nodeinfo</a>'
;
updateMeta
(
'add_attempt'
,
$_domain
);
}
}
db/update-remote-data.php
View file @
d56169be
...
...
@@ -47,17 +47,16 @@ $skippods = array_merge($existingpods, $triedpods);
$foundpods
=
[];
//pulling all nodes for now
$federationpods
=
curl
(
'https://the-federation.info/
graphql?query=%7Bnodes%7Bhost%20platform%7Bname%7Dprotocols%7Bname%7D%7D%7D&raw
'
,
false
,
45
);
$federationpods
=
curl
(
'https://the-federation.info/
pods.json
'
,
false
,
45
);
if
(
$pods
=
json_decode
(
$federationpods
[
'body'
]
?:
''
,
true
))
{
foreach
(
$pods
[
'data'
][
'nodes'
]
??
[]
as
$poddata
)
{
$protocols
=
array_column
(
$poddata
[
'protocols'
]
??
[],
'name'
);
foreach
(
$pods
[
'pods'
]
??
[]
as
$key
=>
$poddata
)
{
$foundpods
[]
=
strtolower
(
preg_replace
(
'/(https?:\/\/)?(:(\d*))?/'
,
''
,
$poddata
[
'host'
]));
}
}
$diasppods
=
curl
(
'https://diasp.org/pods.json'
,
false
,
45
);
if
(
$pods
=
json_decode
(
$diasppods
[
'body'
]
?:
''
,
true
))
{
foreach
(
$pods
??
[]
as
$poddata
)
{
foreach
(
$pods
??
[]
as
$
key
=>
$
poddata
)
{
$foundpods
[]
=
strtolower
(
preg_replace
(
'/(https?:\/\/)?(:(\d*))?/'
,
''
,
$poddata
[
'host'
]));
}
}
...
...
@@ -67,6 +66,7 @@ foreach ($results as $result) {
echo
' domain '
.
$result
.
' trying... '
;
$add
=
__DIR__
.
'/add.php'
;
echo
exec
(
"php-cgi
{
$add
}
domain=
{
$result
}
"
)
.
"
\r\n
"
;
updateMeta
(
'add_attempt'
,
$result
);
}
updateMeta
(
'federation_updated'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment