Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
relay
Commits
4fc5d692
Commit
4fc5d692
authored
Jun 06, 2022
by
Izalia Mae
Browse files
exclude git hash if unavailable
parent
4847c2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
relay/views.py
View file @
4fc5d692
...
...
@@ -12,9 +12,10 @@ from .processors import run_processor
try
:
commit_label
=
subprocess
.
check_output
([
"git"
,
"rev-parse"
,
"HEAD"
]).
strip
().
decode
(
'ascii'
)
version
=
f
'
{
__version__
}
{
commit_label
}
'
except
:
commit_label
=
'???'
version
=
__version__
async
def
home
(
request
):
...
...
@@ -169,7 +170,7 @@ async def nodeinfo_2_0(request):
},
'software'
:
{
'name'
:
'activityrelay'
,
'version'
:
f
'
{
__
version
__
}
{
commit_label
}
'
'version'
:
version
},
'usage'
:
{
'localPosts'
:
0
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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