mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
Updating more repo URLs
This commit is contained in:
parent
b12d27551a
commit
7f9ae3d01b
14 changed files with 29 additions and 29 deletions
|
@ -33,7 +33,7 @@ export default function Version() {
|
|||
</>
|
||||
) : (
|
||||
<a
|
||||
href={`https://github.com/benphelps/homepage/releases/tag/${version}`}
|
||||
href={`https://github.com/gethomepage/homepage/releases/tag/${version}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="ml-2 text-xs text-theme-500 dark:text-theme-400 flex flex-row items-center"
|
||||
|
|
|
@ -75,7 +75,7 @@ export function getSettings() {
|
|||
|
||||
if (initialSettings.layout) {
|
||||
// support yaml list but old spec was object so convert to that
|
||||
// see https://github.com/benphelps/homepage/issues/1546
|
||||
// see https://github.com/gethomepage/homepage/issues/1546
|
||||
if (Array.isArray(initialSettings.layout)) {
|
||||
const layoutItems = initialSettings.layout
|
||||
initialSettings.layout = {}
|
||||
|
|
|
@ -24,7 +24,7 @@ async function fetchFromPyloadAPI(url, sessionId, params, service) {
|
|||
},
|
||||
};
|
||||
|
||||
// see https://github.com/benphelps/homepage/issues/517
|
||||
// see https://github.com/gethomepage/homepage/issues/517
|
||||
const isNg = cache.get(`${isNgCacheKey}.${service}`);
|
||||
if (isNg && !params) {
|
||||
delete options.body;
|
||||
|
@ -50,7 +50,7 @@ async function login(loginUrl, service, username, password = '') {
|
|||
if (status !== 200 || sessionId === false) {
|
||||
logger.error(`HTTP ${status} logging into Pyload API, returned: ${JSON.stringify(sessionId)}`);
|
||||
} else if (responseHeaders['set-cookie']?.join().includes('pyload_session')) {
|
||||
// Support pyload-ng, see https://github.com/benphelps/homepage/issues/517
|
||||
// Support pyload-ng, see https://github.com/gethomepage/homepage/issues/517
|
||||
cache.put(`${isNgCacheKey}.${service}`, true);
|
||||
const sessionCookie = responseHeaders['set-cookie'][0];
|
||||
cache.put(`${sessionCacheKey}.${service}`, sessionCookie, 60 * 60 * 23 * 1000); // cache for 23h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue