mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-07 14:26:44 +01:00
Updated API per Silver's requirements
This commit is contained in:
parent
2684107095
commit
56f477f6de
2 changed files with 16 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class UpdateTrackHash extends Migration {
|
||||
public function up() {
|
||||
foreach (Track::with('user')->get() as $track) {
|
||||
$track->updateHash();
|
||||
$track->save();
|
||||
}
|
||||
}
|
||||
|
||||
public function down() {
|
||||
}
|
||||
}
|
|
@ -420,7 +420,7 @@
|
|||
}
|
||||
|
||||
public function updateHash() {
|
||||
$this->hash = md5(Helpers::sanitizeInputForHashing($this->user->display_name) . '-' . Helpers::sanitizeInputForHashing($this->title));
|
||||
$this->hash = md5(Helpers::sanitizeInputForHashing($this->user->display_name) . ' - ' . Helpers::sanitizeInputForHashing($this->title));
|
||||
}
|
||||
|
||||
public function updateTags() {
|
||||
|
|
Loading…
Reference in a new issue