mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 22:47:59 +01:00
Thigns
This commit is contained in:
parent
fca0dccc01
commit
519c9344e0
4 changed files with 30 additions and 3 deletions
|
@ -322,6 +322,21 @@
|
||||||
$this->error('Could not sync favourite ' . $fav->id . ' because ' . $e->getMessage());
|
$this->error('Could not sync favourite ' . $fav->id . ' because ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->info('Syncing Followers');
|
||||||
|
$oldFollowers = $oldDb->table('user_follower')->get();
|
||||||
|
foreach ($oldFollowers as $follower) {
|
||||||
|
try {
|
||||||
|
DB::table('followers')->insert([
|
||||||
|
'id' => $follower->id,
|
||||||
|
'user_id' => $follower->follower_id,
|
||||||
|
'artist_at' => $follower->user_at,
|
||||||
|
'created_at' => $follower->created_at,
|
||||||
|
]);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$this->error('Could not sync follower ' . $fav->id . ' because ' . $e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getIdDirectory($type, $id) {
|
private function getIdDirectory($type, $id) {
|
||||||
|
|
|
@ -119,6 +119,12 @@ class RefreshCache extends Command {
|
||||||
$resources[$type][$id] = $resource;
|
$resources[$type][$id] = $resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (DB::table('followers') as $follower) {
|
||||||
|
$userResource = $this->getUserCacheItem($cacheItems, $follower->user_id, 'artist', $follower->artist_id);
|
||||||
|
$userResource['is_followed'] = true;
|
||||||
|
$cacheItems[$follower->user_id]['artist'][$follower->artist_id] = $userResource;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($resources as $name => $resourceArray) {
|
foreach ($resources as $name => $resourceArray) {
|
||||||
foreach ($resourceArray as $id => $resource) {
|
foreach ($resourceArray as $id => $resource) {
|
||||||
DB::table($name . 's')->whereId($id)->update($resource);
|
DB::table($name . 's')->whereId($id)->update($resource);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
return $retVal;
|
return $retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<link rel="stylesheet" href="asset.php?area=' . $area . '&type=less&' . gmdate($css->getLastModified()) . '" />';
|
return '<script>document.write(\'<link rel="stylesheet" href="asset.php?area=' . $area . '&type=less&' . gmdate($css->getLastModified()) . '" />\');</script>';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function scriptAssetCollection($area) {
|
public static function scriptAssetCollection($area) {
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
@extends('shared._app_layout')
|
@extends('shared._app_layout')
|
||||||
|
|
||||||
@section('app_content')
|
@section('app_content')
|
||||||
<h1>Look, it's a website!</h1>
|
<h1>Welcome to Pony.fm</h1>
|
||||||
<p>This page should be what search engines see</p>
|
<p>The pony fan music site. By a brony, for bronies.</p>
|
||||||
|
<p>
|
||||||
|
We provide a comprehensive set of free tools to host, distribute, and catalogue your music, integrated with a rich community experience for artists and listeners alike.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Features include <strong>unlimited downloads</strong>, <strong>unlimited uploads</strong>, <strong>lossless uploads</strong> and much more! Click <a href="/about">here</a> to get all of our features!
|
||||||
|
</p>
|
||||||
@endsection
|
@endsection
|
Loading…
Reference in a new issue