Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
alicerunsonfedora committed Oct 26, 2019
2 parents 0a51bd0 + 14fef7d commit d60211d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Pull request
about: Create a pull request to help us improve the code
title: "Request title"
This PR makes the following changes:

---
<!-- List your changes here as a bullet list. Read the contribution guidelines for more details.-->

This PR makes the following changes:
-
-
-
-

<!-- List your changes here as a bullet list. Read the contribution guidelines for more details.-->
- [] This is a release check.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hyperspace",
"productName": "Hyperspace",
"version": "1.0.0",
"version": "1.0.1",
"description": "A beautiful, fluffy client for the fediverse",
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
"repository": "https://github.com/hyperspacedev/hyperspace.git",
Expand Down
2 changes: 1 addition & 1 deletion public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"location": "https://hyperspaceapp.herokuapp.com",
"branding": {
"name": "Hyperspace",
Expand Down
15 changes: 10 additions & 5 deletions src/pages/Welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, ChangeEvent } from "react";
import React, { Component } from "react";
import {
withStyles,
Paper,
Expand Down Expand Up @@ -26,7 +26,8 @@ import { SaveClientSession } from "../types/SessionData";
import {
createHyperspaceApp,
getRedirectAddress,
inDisallowedDomains
inDisallowedDomains,
instancesBearerKey
} from "../utilities/login";
import { parseUrl } from "query-string";
import { getConfig } from "../utilities/settings";
Expand Down Expand Up @@ -354,9 +355,13 @@ class WelcomePage extends Component<IWelcomeProps, IWelcomeState> {
} else {
axios
.get(
"https://" +
baseUrl +
"/api/v1/timelines/public"
"https://instances.social/api/1.0/instances/show?name=" +
baseUrl,
{
headers: {
Authorization: `Bearer ${instancesBearerKey}`
}
}
)
.catch((err: Error) => {
let userInputError = true;
Expand Down
3 changes: 3 additions & 0 deletions src/utilities/login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Mastodon from "megalodon";

export const instancesBearerKey =
"QBEULaOyF04OKjHsHktx5reOqDUklWMSWfUiKRdcen7iLDjta8kL2ZEgozAlBScizR0LKSMcxg2su9f3VLdJt5dZyfWkSXEPlxHBUlPzBF4Ju9lAiOhklh0TLNpFZBqA";

/**
* Creates the Hyperspace app with the appropriate Redirect URI
* @param name The name of the app (if not Hyperspace, will use `name (Hyperspace-like)`)
Expand Down

0 comments on commit d60211d

Please sign in to comment.